-
Notifications
You must be signed in to change notification settings - Fork 47
Working with nodejitsu
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
Visit nodejitsu.com. 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 http://gimmesomebeta.nodejitsu.com and entering the username you used earlier. You should then receive an email to activate your account.
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, run jitsu
. You should be prompted for your nodejitsu account credentials if this is your first time running jitsu.
Run 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.
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, run 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.