Last active
July 10, 2017 01:44
-
-
Save juanhuttemann/b274ae8645d985e8b923f7f5cce58d37 to your computer and use it in GitHub Desktop.
Rails secret key, migrations, seeds and assets compile generation
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 | |
bundle install | |
OUTPUT="$(rails secret RAILS_ENV=production)" | |
SECRET="SECRET_KEY_BASE=${OUTPUT}" | |
echo $SECRET >> ~/.profile | |
rails db:migrate RAILS_ENV=production | |
rails db:seed RAILS_ENV=production | |
rails assets:precompile RAILS_ENV=production |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment