0.15.0 • Published 10 years ago

jitsu v0.15.0

Weekly downloads
260
License
MIT
Repository
-
Last release
10 years ago

jitsu Build Status

Flawless command line deployment of Node.js apps to the cloud

Overview

Jitsu is a Command Line Tool (CLI) for managing and deploying Node.js applications. It's open-source and easy to use. We've designed jitsu to be suitable for command line beginners, but still be powerful and extensible enough for production usage.

jitsu requires npm, the node package manager.

One-line jitsu install

[sudo] npm install jitsu -g

Features

jitsu is built on some amazing technologies which we've been actively building with the community since 2009. jitsu is fully extendable and extremely modular ( see Libraries section ).

  • Allows for seamless deployment of your Node.js applications to the cloud
  • Ships with use-full boilerplates and sample applications through Node Apps project integration
  • Fully supports npm dependency resolution on deployment to Nodejitsu
  • Full support of Nodejitsu's API ( a plethora of node.js goodies )
  • Integrated multi-level multi-transport logging support via Winston
  • Too many to list... seek further knowledge or just try it out!

One-Line Node App Installation

If you don't have an application yet, you can use one of ours!

 jitsu install

One-Line Node App Deployment

 jitsu deploy

( inside the path of your Node.js application )

This will create a new application, package.json, and deploy your path to Nodejitsu. If it's your first deployment, you'll be prompted for some information such as subdomain and start script but it's really easy and we promise it will only take a few seconds.

If you have any issues deploying your node.js application please feel free to open up an issue on the Github Issues section of this page, we'll have someone get back to you in a flash!

Usage

jitsu is mostly self documenting. After installation, run the jitsu command from your command line.

If it's your first time using jitsu, you will be prompted to login with an existing account or create a new account.

After you've logged in, you can start deploying apps immediately!

Command Line Usage

jitsu is mostly self-documenting. Try any of these commands to get started.

Usage:

 jitsu <resource> <action> <param1> <param2> ...

Common Commands:

To sign up for Nodejitsu

 jitsu signup

To log into Nodejitsu

 jitsu login

To install a pre-built application

 jitsu install

Deploys application in the current path to Nodejitsu

 jitsu deploy

Lists all applications for the current user

 jitsu list

Additional Commands

 jitsu apps
 jitsu snapshots
 jitsu users
 jitsu logs
 jitsu databases
 jitsu conf
 jitsu logout

Help

jitsu is mostly self documenting. We suggest just trying it out. All commands will yield friendly messages if you specify incorrect parameters. If you find anything difficult to use, please open up a Github issue or pull request!

 jitsu help
 jitsu help apps
 jitsu help snapshots
 jitsu help users
 jitsu help logs
 jitsu help databases
 jitsu help config

.jitsuconf file

All configuration data for your local jitsu install is located in the .jitsuconf file in your home directory. Directly modifying this file is not really advised. You should be able to make all configuration changes via:

jitsu config

If you need to have multiple configuration files, use --localconf or --jitsuconf options.

Some Examples:

jitsu config set colors false   # disable colors
jitsu config set timeout 480000 # set request timeouts to 8 minutes
jitsu config set noanalyze true  # disable package analyzer
jitsu config set protocol https # Always use HTTP Secure

##jitsu options

jitsu [commands] [options]

--version             print jitsu version and exit
--localconf           search for .jitsuconf file in ./ and then parent directories
--jitsuconf [file]    specify file to load configuration from
--noanalyze           skip require-analyzer: do not attempt to dynamicially detect dependencies

##jitsu behind proxy

If you are behind a proxy and you haven't configured jitsu to use it, jitsu will throw an error, Jitsu requires you to connect to Nodejitsu's stack (api.nodejitsu.com). In order to solve this issue, you can configure jitsu to use a proxy by executing the following command.

jitsu config set proxy http://proxy.domain.com:3128/

If you need to authenticate yourselves to the proxy, you can try this command.

jitsu config set proxy http://user:pass@proxy.domain.com:3128/

##jitsu hooks

You can add pre-deploy and post-deploy hooks to jitsu for running build scripts, tagging releases or anything else you want to do. These are hooks that are executed before or after deploying your application on the local machine. They are stored in your package.json:

{
  "name": "test-app",
  "subdomain": "test-app",
  "scripts": {
    "predeploy": "echo This will be run before deploying the app",
    "postdeploy": "echo This will be run after deploying the app",
    "start": "app.js"
  },
  "engines": {
    "node": "0.6.x"
  },
  "version": "0.0.0"
}

Which results in the following output when deploying:

$ jitsu deploy
info:    Welcome to Nodejitsu nodejitsu
info:    It worked if it ends with Nodejitsu ok
info:    Executing command deploy
info:    Analyzing your application dependencies in app.js
info:    Checking app availability test-app
info:    Creating app test-app
This will be run before deploying the app
info:    Creating snapshot 0.0.0
info:    Updating app test-app
info:    Activating snapshot 0.0.0 for test-app
info:    Starting app test-app
info:    App test-app is now started
info:    http://test-app.jit.su on Port 80
This will be run after deploying the app
info:    Nodejitsu ok

Libraries

jitsu is built on a few well developed, well maintained Node.js libraries. The Nodejitsu team and friends have been building and using these projects actively for the past two years. They are the most used Node libraries (see: http://search.npmjs.org/) and are actively maintained by Nodejitsu and other core members of the Node.js community. Each library serves a specific function and we highly suggest you check each one out individually if you wish to increase your knowledge of Node.js

  • npm - Node Package Manager
  • colors - Terminal Colors module
  • optimist - CLI Options Parsing
  • request - http request module
  • async - Asynchronous Iteration
  • vows - Asynchronous BDD testing library
  • winston - Multi-transport logging library

Need more?

The documentation for jitsu and the Nodejitsu APIs is open-source and a work in-progress. For more information checkout the Nodejitsu Handbook

(C) Copyright 2010 - 2013, Nodejitsu Inc.

0.15.0

10 years ago

0.14.0

10 years ago

0.13.18

10 years ago

0.13.17

10 years ago

0.13.16

11 years ago

0.13.15

11 years ago

0.13.14

11 years ago

0.13.13

11 years ago

0.13.12

11 years ago

0.13.11

11 years ago

0.13.10

11 years ago

0.13.9

11 years ago

0.13.8

11 years ago

0.13.7

11 years ago

0.13.6

11 years ago

0.13.5

11 years ago

0.13.4

11 years ago

0.13.3

11 years ago

0.13.2

11 years ago

0.13.1

11 years ago

0.13.0

11 years ago

0.12.15

11 years ago

0.12.14

11 years ago

0.12.13

11 years ago

0.12.12

11 years ago

0.12.11

11 years ago

0.12.10-2

12 years ago

0.12.10-1

12 years ago

0.12.10

12 years ago

0.12.9

12 years ago

0.12.8

12 years ago

0.12.7

12 years ago

0.12.6-1

12 years ago

0.12.6

12 years ago

0.12.5

12 years ago

0.12.4

12 years ago

0.12.3

12 years ago

0.12.2

12 years ago

0.12.1

12 years ago

0.12.0

12 years ago

0.11.7

12 years ago

0.11.6

12 years ago

0.11.5

12 years ago

0.11.4

12 years ago

0.11.3

12 years ago

0.11.2

12 years ago

0.11.1

12 years ago

0.11.0

12 years ago

0.10.5

12 years ago

0.10.4

12 years ago

0.10.3-2

12 years ago

0.10.3-1

12 years ago

0.10.3

12 years ago

0.10.2

12 years ago

0.10.1

12 years ago

0.10.0

12 years ago

0.9.8

12 years ago

0.9.7

12 years ago

0.9.6

12 years ago

0.9.5

12 years ago

0.9.4

12 years ago

0.9.3

12 years ago

0.9.2

12 years ago

0.9.1

12 years ago

0.9.0

12 years ago

0.8.9

12 years ago

0.8.8

12 years ago

0.8.7

13 years ago

0.8.6

13 years ago

0.8.5-1

13 years ago

0.8.5

13 years ago

0.8.4-1

13 years ago

0.8.4

13 years ago

0.8.3

13 years ago

0.8.2-1

13 years ago

0.8.2

13 years ago

0.8.1

13 years ago

0.8.0

13 years ago

0.7.100

13 years ago

0.7.7-2

13 years ago

0.7.7-1

13 years ago

0.7.7

13 years ago

0.7.6-1

13 years ago

0.7.6

13 years ago

0.7.5

13 years ago

0.7.4-1

13 years ago

0.7.4

13 years ago

0.7.3

13 years ago

0.7.2-1

13 years ago

0.7.2

13 years ago

0.7.1

13 years ago

0.7.0-2

13 years ago

0.7.0-1

13 years ago

0.7.0

13 years ago

0.6.3

13 years ago

0.6.2

13 years ago

0.6.1-1

13 years ago

0.6.1

13 years ago

0.6.0

13 years ago

0.5.0-1

13 years ago

0.5.0

13 years ago

0.4.16

13 years ago

0.4.15

13 years ago

0.4.14

13 years ago

0.4.13

13 years ago

0.4.12

13 years ago

0.4.11

13 years ago

0.4.10

13 years ago

0.4.94

13 years ago

0.4.93

13 years ago

0.4.92

13 years ago

0.4.91

13 years ago

0.4.9

13 years ago

0.4.8

13 years ago

0.4.7

13 years ago

0.4.6

13 years ago

0.4.5

13 years ago

0.4.4

13 years ago

0.4.3

13 years ago

0.4.2

13 years ago

0.4.1

13 years ago

0.4.0

13 years ago

0.3.12

13 years ago

0.3.8

13 years ago

0.3.7

13 years ago

0.3.6

13 years ago

0.3.5-3

13 years ago

0.3.5-2

13 years ago

0.3.5-1

13 years ago

0.3.5

13 years ago

0.3.4

14 years ago

0.3.3

14 years ago

0.3.2

14 years ago

0.3.1

14 years ago

0.3.0

14 years ago

0.2.1

14 years ago

0.2.0

14 years ago

0.1.3-1

14 years ago

0.1.3

14 years ago

0.1.2

14 years ago

0.1.1-3

14 years ago

0.1.1-2

14 years ago

0.1.1-1

14 years ago

0.1.1

14 years ago