Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Hosting

isao edited this page Sep 13, 2012 · 12 revisions

There are many Node.js providers that you might use to host your Mojito applications.

Necessary changes

Today, after creating a Mojito app, you have to modify your server.js file to be compatible with $ node server.js and most of the service providers out there. A server.js that works with $ node server.js as well as Heroku and Nodejitsu looks like this:

/**
 * Starts a new Mojito server instance.
 */
var mojito = require('mojito');
new mojito.constructor().createServer().listen(process.env.PORT || 5000);

We are working on providing such a compatible file by default in the future. See issue #265 and pull #422.

Platform Providers

We have tested Mojito with

but are confident that it will work with others, too. You should check a more complete list maintained by Joyent. If you are a Node.js hosting or platform as a service provider, please feel free to reach out to us. Then we can document necessary steps to get Mojito running and make it work!

Clone this wiki locally