Migration to the new stack

What's new

The new stack brings a couple new features and many performance improvements:

Application logs and NPM build logs are available through the web console

Apps are restarted less often

MongoDB was migrated to version 3.0.x with oplog enabled

Start script is detected based on package.json

Changes to the apps are applied within seconds

Added support for many libraries and tools required during build such as ImageMagick, libjpeg, libpng and many others

Recommended approach

All new applications are by default created on the new stack.
Apps running on the old stack can be identified by the url in format app-name.evennode.com.
In case your application still runs on the old stack, below you can find the recommended approach for migration:

Update your code to be compatible with changes described below

Create a new free trial app

Deploy your code to this new app

Test if everything works ok

In case everything works as expected and you're ready to migrate, update your custom domain CNAME entries and start using the new URL

If you're on a paid plan, let us know at support@evennode.com — we'll migrate your plan to the new app

The old app can be removed

Listen on new port

On the new stack your app should listen on port defined by environment variable process.env.PORT.
See Hello World source for example how to configure your app.