heroku - Simple node.js app deployment on DigitalOcean from GitHub -
i have node.js application on github. right using heroku hosting want give digitialocean try (the $5/month more affordable).
i used using heroku, go create app > connect github account > deploy master branch > boom app deployed.
when signed , started exploring seemed way , many steps app deployed. researched around find simpler way (similar 1 follow in heroku) blogs , youtube videos go through same tedious process.
i know being lazy need few clicks app deployment. know better (smarter) way can deploy app on github?
it not easy heroku. tempting use cheaper services digital ocean or vultr , pay fraction of price (especially using coupon links can make free months - digital ocean, vultr) having own vps means need manage yourself. simplifying process pay when you're using heroku. doesn't have bad.
here tutorial on how it:
and see list of tutorials - search "deploy" in title:
basically have few options consider here:
a semi-manual deploy git - can install git server on vps , push whenever want deploy new version
automatic deploy git - can add deployment process ci scripts manually in (1) after tests pass
you can trigger pull git on server ssh or custom api
you can (3) in ci scripts
you can add custom webhook in github notify server new version , server may pull code , restart
you can add custom webhook in ci , same in (5)
Comments
Post a Comment