-
Notifications
You must be signed in to change notification settings - Fork 214
02. Mojito v0.9: What's No Longer Supported
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.
To start applications with Mojito v0.9, you can no longer run mojito start
. Instead, you start your applications with node app.js
.
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.
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.
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);