This application was generated with the rails_apps_composer gem provided by the RailsApps Project.
This application requires:
- Ruby 2.2.0
- Rails 4.2.1
Learn more about Installing Rails.
- Clone the repo
- Install dockertoolbox, this can be done via brew if on OS X
- This includes the suite of tools you need to run the app locally
- Follow instructions here to get that setup https://www.docker.com/products/docker-toolbox
- Request a copy of the application.yml from jaicob@axontutors.com and place in config/application.yml
- Run
docker-compose up - Open a shell using
docker exec -it webapp_web_1 /bin/bash - Inside the container run
rake db:create db:migrateto setup your database - Inside the container run
rake bower:installto get assets - You can visit the running application at the ip of you docker-machine on port 3000
- I would recommend adding dockerhost as known host on your machine for ease of access
- Restart the server by using
docker-compose stopthendocker-compose upordocker-compose start docker-compose startwill run it as a daemon where asdocker-compose upis in the foreground- All file changes should be made locally and any rake or bundle commands should be run inside the container
- Sidekiq and Redis handle our background processes, currently just sending emails
- Even Devise sends email in the background (as well as all appointment emails) and Redis and Sidekiq must be running for Devise emails to work
- Docker compose handles starting/running both of these
- To monitor background processes, visit dockerhost:3000/sidekiq
- If there are issues with the docker containers let jaicob@axontutors.com know and he will be in touch to make your troubles disappear (hopefully)
There can only be one.