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
# rake deploy # Push app to heroku:production, migrate, restarts and tail logs | |
# rake deploy:production # Push app to production, migrate, restarts, tag and tail logs | |
# rake deploy:production:config # production config | |
# rake deploy:production:console # production console | |
# rake deploy:production:logs # production logs | |
# rake deploy:production:ps # production ps | |
# rake deploy:production:releases # production releases | |
# rake deploy:staging # Push app to staging, migrate, restarts, tag and tail logs | |
# rake deploy:staging:config # staging config | |
# rake deploy:staging:console # staging console |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
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/sh | |
read -r -p "Confirm deployment to PRODUCTION? Type 'yes' to continue " response | |
if [[ $response == "yes" ]] | |
then | |
# Precompile assets and commit to github | |
bundle exec rake assets:precompile RAILS_ENV=production | |
git add . | |
git commit -m 'recompiling assets' | |
git push origin master | |
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
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh [email protected]
Add ssh fingerprint and enter password provided in email