Skip to content

Instantly share code, notes, and snippets.

@themouette
Last active August 29, 2015 14:06
Show Gist options
  • Save themouette/2e0f3f396cef15ad5e25 to your computer and use it in GitHub Desktop.
Save themouette/2e0f3f396cef15ad5e25 to your computer and use it in GitHub Desktop.
rails install script for docker
#!/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
#!/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