Last active
September 29, 2015 15:15
-
-
Save reiro/82f0c23b1f7e9939cb1e to your computer and use it in GitHub Desktop.
Deploy with capistrana
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
cap production deploy - деплой на сервер | |
sudo service supervisor restart | |
cap production deploy:rollback - откат сервера | |
ssh -i ~/.ssh/trendy.pem [email protected] - зайти под ubuntu | |
ssh [email protected] - зайти под деплоем | |
git checkout upstream/master | |
nano authorized_keys - добавили ssh ключ | |
./bin/unicorn restart - рестарт сервера из деплоя deploy@ip-172-31-52-226:/var/www/trendy-reggae-production/current$ | |
sudo chmod 400 trendy.pem - права файлу | |
mv ~/Загрузки/trendy.pem ~/.ssh | |
Merge мастер ветку: | |
1) Чекоут на девелоп | |
2) пулл с upstream develop | |
3) git checkout upstream/master или git checkout master | |
4) git rebase develop | |
5) git push upstream master | |
6) cap production deploy | |
7) sudo service supervisor restart из под убунту | |
8) рестрат юникорн | |
sudo su - зайти под root | |
sudo -i -u deploy - зайти под деплоем |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment