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

02. Mojito v0.9: What's No Longer Supported

Albert Jimenez edited this page Mar 24, 2014 · 3 revisions

With all the changes to the Mojito core, we were still able to keep backwards compatibility for most features, and for the most part, allow you to accomplish similar results using a different implementation. Below we list the features that have been removed and give substitute methods if they exist to help you transition.

mojito start

To start applications with Mojito v0.9, you can no longer run mojito start. Instead, you start your applications with node app.js.

mojito build

In the past, you could build HTML5 applications with the Mojito CLI utility by running the command mojito build html5app. We will no longer support this feature from Mojito v0.9 and later versions.

middleware Property

In the past, you were able to configure middleware by adding code in the directories specified with the middleware array in application.json. In Mojito v0.9, you can add your middleware code directly to app.js or have app.js require modules/files to act as middleware.

appPort Property

To configure the default port in prior versions of Mojito, you would specify the port with the appPort property in application.json. In Mojito v0.9, you specify the default port in app.js in the following way:

app.set('port', process.env.PORT || 8666); 
Clone this wiki locally