Last active
August 29, 2015 13:57
-
-
Save wwwbruno/9753420 to your computer and use it in GitHub Desktop.
Comandos básicos para update de uma aplicação em Rails em servidor com ngix/unicorn
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
# atualiza o repositório | |
git pull | |
# atualiza os bundles | |
bundle install | |
# precomplia os assets | |
RAILS_ENV=production rake assets:precompile | |
# atualiza o banco de dados | |
RAILS_ENV=production rake db:migrate | |
# reinicia o servidor | |
./config/unicorn_init.sh restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment