NodeJS Versions
This guide has been reviewed and reformatted for Ruk-Com Cloud PaaS. Screens may vary slightly by platform version.
Click or tap a screenshot to view it at its original size.
Objective
This guide explains how to use NodeJS Versions on Ruk-Com Cloud PaaS, with ordered procedures and practical verification points.
Before you begin
- Sign in with an account permitted to manage the relevant environment.
- Confirm the target environment, region and resources before saving changes.
- Create a backup or rollback plan before changing a production system.
You can choose the version of the NodeJS server application and process manager. Supported versions are as follows:
- 12.22.7
- 14.20.0
- 16.17.0
- 17.9.1
How to create a Node.js environment
1. Click the buttonNew Environmenttop of dashboard

2. Select languageNode.jsand select your desired server version by clicking the drop-down list button:

3. Select the Process Manager you want to use (forever, npm, pm2, supervisor) as shown in the image below:

Node.js' Process Manager helps control your application lifecycle, providing an easy way to start, stop, and restart processes. It can also be configured to automatically rerun scripts in the event of a new application start, application failure, or code update:
- supervisor- Check changes to code, scripts.jsKeep it updated
- npm- Manage applications, modules and additional packages through filespackage.json
- forever- Manage node processes (such as service start, stop, restart) to keep various services running continuously.
- pm2- Manage applications efficiently with many extra options (e.g. monitoring, load balancing, deployment, etc.)
Next, set up the environment in other sections (such as specifying the number of cloudlets, region, and environment name) and click the button.Create
How to change Node.js version
In the existing environment, you can change the NodeJS server and Process Manager versions in two ways:
1. Click the Change Environment Topology button.

- On the Topology wizard page, click the pencil icon to change the version.

2. Click the buttonRedeploy Containers

- in the pageRedeploy Container(s)It consists of the following options.
- Tag- NodeJS and Process Manager version options
- Keep volumes data- Allow to save your data involumes
- SimultaneousorSequential deployment with delay(forScale the serveronly) - Set the container to redeploy all at once or redeploy nodes one at a time to avoid downtime.
- Click the dropdown button and select the version you want.

3. Click the Yes button to confirm the version change.
