Working with nodejitsu

couch edited this page Apr 16, 2012 · 8 revisions

You may use whichever method/service you choose to deploy Ospriet. However, if you're looking for a simple, out-of-the-box solution, nodejitsu will serve you well. Note: this app has a particular set of requirements that nodejitsu satisfies. If you choose to deploy it your own way, you will need the following:

  • node v0.6.0 or higher
  • WebSocket support
  • MongoDB support
  • Custom domain support

Create an account

Visit Click Try nodejitsu for free. Enter a username and email for your account. If you're told you'll receive an invite soon, you can expedite the process by visiting and entering the username you used earlier. You should then receive an email to activate your account.

Install jitsu

nodejitsu provides a nice command-line utility called jitsu that handles deployment to your account. To install, run

[sudo] npm jitsu install -g

When installation is complete:


You should be prompted for your nodejitsu account credentials if this is your first time running jitsu.

Create a Mongo database through nodejitsu with MongoHQ

jitsu databases create mongo [database_name]

where [database_name] is what you'd like as the name of your server's database. The URL jitsu returns for your database on MongoHQ is what you need to specify as your production database as outlined in Customizing Ospriet.

At this point, you should test Ospriet locally before deploying to production.

Deploy your app

Once you've made sure you've specified all fields as outlined in Customizing Ospriet, you should be able to deploy Ospriet to nodejitsu. In the local directory where your instance of Ospriet lives

jitsu deploy

If all goes well, the application should deploy successfully and now be available at the subdomain/custom domain you specified earlier.

For more assistance with jitsu, please refer to nodejitsu's official handbook.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.