Last active
August 29, 2015 14:06
-
-
Save themouette/2e0f3f396cef15ad5e25 to your computer and use it in GitHub Desktop.
rails install script for docker
This file contains 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 | |
bundle install --deployment --path /var/bundle --without production | |
if [ ! -e "config/database.yml" ] ; then cp config/database.example.yml config/database.yml; fi | |
if [ ! -e ".env" ] ; then cp sample.env .env; fi | |
bundle exec rake db:create | |
bundle exec rake db:schema:load | |
bundle exec rake db:migrate | |
bundle exec rake db:seed |
This file contains 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 | |
bundle install --deployment --path /var/bundle | |
if [ ! -e "config/database.yml" ] ; then cp config/database.example.yml config/database.yml; fi | |
if [ ! -e ".env" ] ; then cp sample.env .env; fi | |
bundle exec rake db:create | |
bundle exec rake db:schema:load | |
bundle exec rake db:migrate | |
bundle exec rake db:seed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment