$ git clone firstname.lastname@example.org:nko3/[slug].git myapp $ cd myapp $ [sudo] npm install -g jitsu $ jitsu login # username and password provided on your NKO team page $ jitsu deploy
To install Jitsu, all you have to do is run:
npm install -g jitsu
npm throws an error, try using
sudo npm install -g jitsu.
Setting up Jitsu
Once you install Jitsu, you will need to login with the password that was provided to your team by NKO. This login, and only this login, will need to be used for each team member. NKO will not accept submissions that are under another Nodejitsu account.
To login, use:
Hint: If you get an error when logging in, try using one of the following:
jitsu conf set protocol http
jitsu conf set host api.nodejitsu.com
Before developing your app, you should clone the repository provided to your team by NKO. This will follow the pattern of
nko3/[slug]. For example, if your team is named “Node Bandits”, your repository would be
If you do not have access to this repository, let someone know immediately. This repository provides a skeleton of what NKO is expecting you to submit when you deploy your application.
Once you have this repository checked out, you can code your application however you see fit. Once you’re done, deploy your application to our cloud by running
jitsu deploy in the directory containing the
package.json file that was provided by your
Warning: Make sure you keep version numbers synced across team members. If a team member trying to deploy an application with version 0.0.1 while another team member has deployed 0.0.2, the server will reject the deploy.
nko3/your-team-name. For example, a team named “Node Bandits” would be
- You get one login for Nodejitsu per team. Use it, because your submissions won’t be accepted from another account.
- Keep version numbers synced amongst your team. Using different versions could, and probably will, cause unintended effects.
Jitsu has a lot of features including deploying old snapshots, getting running logs, setting environment variables, and even creating databases. More info can be found by just typing
jitsu at the command line or in the Nodejitsu Handbook.
- nodeknockout posted this