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:

  1. a semi-manual deploy git - can install git server on vps , push whenever want deploy new version

  2. automatic deploy git - can add deployment process ci scripts manually in (1) after tests pass

  3. you can trigger pull git on server ssh or custom api

  4. you can (3) in ci scripts

  5. you can add custom webhook in github notify server new version , server may pull code , restart

  6. you can add custom webhook in ci , same in (5)


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -