Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I automate Node.js deployments?

I'm looking for something analogous to Capistrano for Rails - https://github.com/capistrano/capistrano/wiki/

I'd like to be able to run a single command from my workstation that will update the code on my server(s) from a GitHub project and handle all necessary process restarting for the application. I need to be able to control specifically when this happens, not use a hook in GitHub's checkin event.

Are Node.js developers also using Capistrano, or is there a tool that works better for Node.js?

like image 366
Eric the Red Avatar asked Oct 07 '11 15:10

Eric the Red


People also ask

Can deployment be automated?

Deployment automation is what enables you to deploy your software to testing and production environments with the push of a button. Automation is essential to reduce the risk of production deployments.

How do you automate build deployment?

Automate the software deployment process Build: A developer commits code to a software repository. Code changes should be integrated into environments that match the production environment. Test: A deployment automation tool, such as Jenkins or Ansible, will see the new code and trigger a series of tests.

Which tool automate various tasks of node JS?

GruntJS tool is used to automate the various tasks of the Node. js application.


2 Answers

You could use fabric, it's a python lib. Nodejs already uses python for some build operations for extensions, no reason you couldn't also use python to do what you're asking.

http://docs.fabfile.org/en/1.2.2/index.html

I don't know of a javascript lib that does this, not to say there isn't one though. Fabric sounds very much like what capistrano is, but maybe a tiny bit different in some aspects.

like image 110
Sneaky Wombat Avatar answered Nov 28 '22 20:11

Sneaky Wombat


Capistrano seems to be the most popular choice.

like image 22
Eric the Red Avatar answered Nov 28 '22 19:11

Eric the Red