Last active
April 15, 2017 17:24
-
-
Save dmitryrck/c9c570996166e2df6fe1acffc8c4bce6 to your computer and use it in GitHub Desktop.
Zero to Up and Running a Rails Project only using Docker - bin/setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -xe | |
# Uncomment this line and ensure your config/database.yml.sample is ready to run with docker. | |
# cp config/database.yml.sample config/database.yml | |
docker-compose run --rm -u root web bash -c "mkdir -p /bundle/vendor && chown railsuser /bundle/vendor" | |
docker-compose run --rm web bundle install | |
docker-compose run --rm web bundle exec rake db:setup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment