Nodejitsu has joined GoDaddy

We are excited to join GoDaddy to help spearhead their largest Node.js product: Website Builder. As a part of this Nodejitsu will help existing customers transition onto new solutions for their hosting needs until early August 2015.Please migrate your applications from the Nodejitsu platform before the end of the transition period. Please read our blog post to learn more about customer transition plans and our continued support for Open Source within the node community.

Working with snapshots

The jitsu snapshots command manages snapshots for applications on Nodejitsu. Snapshots are images of the applications code that is deployed to the Nodejitsu Platform. You can compare snapshots to tarballs or zipped content. For commands that take a appname parameter, if no parameter is supplied, jitsu will attempt to read the package.json from the current directory.

List all snapshots

To show a list of all snapshots, simply do jitsu snapshots list [appname]. The list is chronological in descending order. The latest snapshot will be listed as active. Results should be something like below:

Activating a specific snapshot

If you need to revert to an older state quickly you can simply activate an older snapshot. Making jitsu snapshots activate [appname] perfect for crisis management. Active will also start the snapshot for you, so you can work continue work on a fix right after. In the example below 0.3.0-1 will be activated.

Grabbing snapshots from the cloud

You can download any snapshot to inspect or modify it. The snapshot might provide insight in any error or failure. For instance, if a directory is unintentionally not included in the snapshot. Grabbing a snapshot, changing code and redeploying is possible, but Nodejitsu recommends using git for code management, as it will improve your workflow.

To get a snapshot from the cloud use jitsu snapshots fetch [appname]. You will be prompted to enter the snapshot name. Snapshot names are equal to the version at deployment. In the example below, the snapshot name would be 0.2.0-2