I want to automate my deployment of my node.js app from my machine to the cloud server?
It currently using expressjs.
Is there anything out there like this. Have tried googling but no luck
Cheers
First of all, you need a private registry server. For example, this one, since it's easiest to install. You'll publish your node.js app there, so cloud servers will download it.
Secondly, you need to execute npm update on all your servers whenever you publish something there.
So my usual deployment process is this:
npm publish --reg http://my.private.registry:4873/ on local packagenpm update --reg http://my.private.registry:4873/ on each of the remote servers (this can be automated using puppet)pm2 restart all in my case, but you can use different supervisor)PS: 2 and 3 steps can even be automatic when this gets implemented, so it'll just be npm publish
I'm not sure this is what you're asking for, but companies like Heroku allow for automated deployment of apps from the desktop to the cloud. No relation, just a (free) customer.
Dave Winer has put together a very nicely documented how-to on this very subject:
package.json) and you are good to go. Throw the steps in a script and you can trigger it remotely, via a cron to (e.g.) check for new code every day at 2AM, etc. Search S.O. or Bing around, and you'll find more elaboration on these approaches.