Documentation

Visit Our xCloud Knowledge Base

Here is your one-stop source for in-depth articles, FAQs, and tutorials for you to excel at hosting & managing your websites.


How to Deploy a Node.js Application with xCloud

Deploying a n can often involve complex configurations and server management tasks. With xCloud, this process becomes simple, automated, and developer-friendly.

xCloud provides an intuitive interface that allows you to easily deploy, manage, and scale your Node.js applications directly from your Git repository without worrying about manual setup or infrastructure maintenance.

Follow the guide to deploy your Node.js application easily with xCloud:

Step 1: Choose the Application #

To begin deployment, click on the โ€˜Create Siteโ€™ button from the dashboard. You will then be asked to choose โ€˜Serverโ€™ from the dropdown.

Next, you will see options such as โ€˜WordPressโ€™ and โ€˜Custom PHPโ€™. Go to the โ€˜Node.jsโ€™ option from the tab. After that, choose the โ€˜Clone a Git Repositoryโ€™ option to import your Node.js application using a Git provider.

Step 2: Set Up Domains #

The โ€˜Domainsโ€™ tab allows you to configure your siteโ€™s domain. You can either create a โ€˜Demo Siteโ€™ or a โ€˜Live Siteโ€™. For this documentation, weโ€™ll proceed with the โ€˜Demo Siteโ€™ option and click โ€˜Nextโ€™  to continue.

Step 3: Configure Node.Js Application  #

In the โ€˜Settingsโ€™ tab, you will find options to configure the Node.js version and manage site users. Adjust them according to your preferences.

Node.js Application

Next, you will see the โ€˜Server-Side Rendering Appโ€™ option. To proceed with a โ€˜Client-Side Rendering Appโ€™, keep the toggle off. To deploy a โ€˜Server-Side Rendered Appโ€™, toggle it on.

– Client-Side Rendering (CSR): #

If your application is built using frameworks like React or Vue that render content in the browser, keep the toggle off. In this mode, the server mainly serves static files, and all rendering happens on the client side.

– Server-Side Rendering (SSR): #

If your Node.js application (for example, Next.js or Nuxt.js) renders pages on the server before sending them to the client, toggle this option on. This allows xCloud to configure the environment to support SSR processes properly.

Here we are proceeding with deploying a โ€˜Server Side Rendered Appโ€™ option

Then youโ€™ll need to provide a few essential details:

โ†’ Port:
Enter the port number your Node.js application listens on (e.g., 3000 or 8080). xCloud uses this port to connect incoming traffic to your app.

โ†’ Start Command:
Specify the command that runs your application (for example, npm start, node server.js, or yarn dev). This tells xCloud how to start your Node.js server after deployment.

โ†’ Web Root Path:
If your projectโ€™s main application files are located in a subdirectory (for instance, /app or /src), enter that path here. If your app is in the root directory, you can leave this field blank.

Now, insert the โ€˜Portโ€™ and โ€˜Start Commandโ€™ in the respective fields. You can also specify a โ€˜Web Rootโ€™ Path for your application.

In the following step, you can choose one of the database options โ€˜No Databaseโ€™, โ€˜Add an Existing Databaseโ€™, โ€˜Create a New Databaseโ€™ directly on the server. Once selected, click โ€˜Nextโ€™.

Step 4: Insert Git Repository Credentials #

In the โ€œGit Repoโ€ tab, you will find three repository options โ€˜Private Repository (Manual SSH URL)โ€™, โ€˜Public Repository (Manual HTTPS URL)โ€™, โ€˜Connected Git Providerโ€™.If you choose Public Repository (Manual HTTPS URL), enter your GitHub Repository URL and specify the Git Branch.

Note: Copy the HTTPS URL from your GitHub repository dashboard.

If you choose Private Repository (Manual SSH URL), enter your GitHub Repository SSH URL and specify the Git Branch.

Note: Copy the SSH URL from your GitHub repository dashboard.

In this document, weโ€™ll deploy the project using the โ€œGit Providerโ€ option.

Node.js Application


Choose โ€œConnected Git Providerโ€ from the dropdown menu. From the โ€œSelect Git Providerโ€ list, choose the connected account you want to use. Then, browse through the repositories, select the one you want to deploy, and choose the specific branch of that project.

Step 5: Enable Push-to-Deploy #

The next step is to enable automated deployment. Toggle on the โ€œEnable Push to Deployโ€ option. Copy the โ€˜Deployment URLโ€™ provided here, you will need to insert it into your GitHub repositoryโ€™s webhook settings.

Step 8: Run Deployment Script #

Once the repository integration is complete, you can configure post-deployment actions.
In the โ€˜Deployment Scriptโ€™ field, enter any custom commands you want to execute after deployment. You can also select one of the example scripts provided. After configuring this, click โ€˜Nextโ€™ to continue.

Next, you can specify the subdirectory where your .env file should be created in the โ€œ.env File Pathโ€ field. You can also enter the contents of your .env file in the โ€œFile Contentโ€ field.

Step 9: Confirm Deployment #

The final step is to confirm and start the deployment. Click the โ€˜Startโ€™ button to begin the process. You can monitor the deployment progress in real time.

Once the deployment is complete, a success message will appear. From there, you can access your site dashboard.

After deployment, visit your site to confirm that your Node.js application has been successfully deployed with xCloud.

Node.js Application

Environment Editor for Node.Js Application #

The Environment section in xCloud allows you to customize configuration settings for your n8n instance. Just go to the โ€˜Environmentโ€™ option from the sidebar and adjust as you need then click on the โ€˜Saveโ€™ button.

SSR Configuration for Node.js application #

If you are deploying an SSR application, you can update the โ€˜Application Portโ€™, โ€˜Start Commandโ€™ later as well. Just go to the โ€˜SSR Configurationโ€™ from the โ€˜Node.jsโ€™ Menu under the site dashboard and click on the โ€˜Update Configurationโ€™ button.

Deploying a Node.js application with xCloud is a streamlined and efficient process that eliminates the complexity of manual configuration and server management. Once your deployment is complete, you can easily manage your application, update configurations, and push new changes directly from your Git repository.

With xCloud, developers can focus on building and improving their Node.js applications while xCloud takes care of the infrastructure behind the scenes.

Still stuck? Contact ourย support teamย for any of your queries.ย 

What are your feelings

Updated on October 28, 2025

Server Name

RAM

SSD

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Newcomer

1GB

25GB

$4.50

$5.00

$6.00

Basic

2GB

55GB

$9.00

$10

$12.00

Standard

4GB

80GB

$18.00

$20

$24.00

Professional

8GB

160GB

$36.00

$40

$48.00

Business

16GB

320GB

$72.00

$80

$96.00

Server Name

RAM

SSD/NVMe

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Lite

1GB

32GB

$5.40

$6.00

$8.00

Personal

2GB

88GB

$16.20

$18.00

$24.00

Growing

4GB

128GB

$21.60

$24.00

$32.00

Elite

8GB

256GB

$43.20

$48.00

$64.00

Titanium

8GB

384GB

$86.40

$96.00

$96.00

Ultimate

32GB

512GB

$172.80

$192.00

$192.00