-
Notifications
You must be signed in to change notification settings - Fork 214
Hosting
There are many Node.js providers that you might use to host your Mojito applications.
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.
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!