The application can be runned over a docker environment. In order to do that, you'll have to download docker-toolbox.
Download docker toolbox from brew cask:
brew cask install dockertoolbox
Create a new VM with it:
docker-machine create --driver virtualbox default
Start the newly created VM
docker-machine start default
Whe opening a new terminal window, set docker's environment variables:
eval "$(docker-machine env default)"
Build the whole Docker environment
cd /to/your/application/folder
docker-compose build web
docker-compose build
- start the application:
docker-compose up
- install new gems after modifiing the Gemfile:
docker-compose run web bundle install
- start a rails console:
docker-compose run web bundle exec rails c
- run the test suite:
docker-compose run web bundle exec rspec