Shared Hosting for Everyone, imagined by developers, for developers.Discovering the Public Cloud
[package] has to be replaced by the name of the package to be installed.
The default version can be changed from the administration section, under Environment > Node.js. This is the version that is especially used when you start
You need to always use
/usr/bin/node). Never use
To force the use of a different version of Node.js other than the default one, define the environment variable
$ NODEJS_VERSION=12 node
In your scripts, use
/usr/bin/node as shebang:
Your Node.js environment starts off empty, with no ready installed libraries. You can use
npm to install package:
$ npm install [package]
You can also use
npm in global mode, the package will be installed in the
$ npm install -g [package]
To deploy an HTTP application with Node.js, create a Node.js type site in the Web > Sites section.
You need to specify the command that will start your Node.js application, for example:
Your application must absolutely listen to IP and the port shown in the site configuration in the Command field. The
PORT environment variables can also be used.