node.js – Is there a deployment tool similar to Fabric written in JavaScript?

node.js – Is there a deployment tool similar to Fabric written in JavaScript?

Flightplan looks very interesting and is inspired by Fabric. Its documentation has extensive examples and is worth checking out.

Ive been pondering the same question myself.

The most promising direct candidate Ive found so far is launch (https://github.com/bengourley/launch). However, it hasnt been updated in like a year, which makes me a little suspicious about its future status.

In the absense of obviously good solutions, I ended up solving the whole build/deployment problem, piece by piece in the following fashion:

  • After some trial and error, I removed node_modules from .gitignore. One of the implications is that you dont have to install dependencies locally, removing the second step (try if reading this convinces you as well).
  • I ended up automating JS/CSS processing, linting and test suite running with grunt. Highly recommended.
  • Im lazy and just now Im adding the minified stuff into git (hopefully I will change this at some point).
    • Edit: I no longer add minified stuff into git, but instead run grunt when deploying to do the minification

By doing so, I effectively eliminated some of the need for Fabric altogether, leaving only the actual deployment to be solved:

  1. The best solution (deployment-wise) is to avoid running your own servers and use ready, cloud-solutions such as Heroku or Nodejitsu
  2. Alternatively, you could host your own node.js deployment tools. For instance you can install Nodester on your own servers and use the provided APIs and tools.
  3. On a Linux box, it is very easy to write one-liners that re-deploy a node.js app, so I dont feel like I need to use any extra tools (besides bash) for that.

That being said, I too would be glad to hear about better solutions.

Edit: just found out about deploy (https://github.com/visionmedia/deploy). Seems very promising. You could try that as well!

node.js – Is there a deployment tool similar to Fabric written in JavaScript?

stagecoach does staging and deployment, with support for dependency installation and upstart scripts.

Heres a blog post about deploying node & mongo using stagecoach.

Leave a Reply

Your email address will not be published.