Deploying an application 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: Create a New Site #
To begin deployment, click on the âAdd New Siteâ button from your xCloud dashboard. You will then be asked to choose the server where you want to deploy your Git project.

Step 2: Go to the Deploy Via Git Tab #
Next, head over to the âDeploy Via Gitâ tab. This is where you can deploy your Git projects in just a click.

Step 3: Enter Your Project URL #
You will find âPublic Repository (Manual HTTPS URL)â and âConnected Git Providerâ. If you choose Public Repository (Manual HTTPS URL), enter your GitHub Repository URL and specify the Git Branch.
If you choose Connected Provider, enter your GitHub Repository SSH URL and specify the Git Branch.
In this document, weâll deploy the project using the âConnected Git Providerâ option.
Enter your project URL in the âURLâ field. You will see xCloud automatically detecting the site type and setting the site type as âNode.jsâ or others from your repository, so there is nothing to select manually here.

Step 2: Set Up Domains #
Then go to the âStaging Domainâ tab. xCloud provides a free demo domain to make your site public. Or if you want to proceed with your custom domain, just click on âUse a demo domain insteadâ. 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.
Next, you will see the âBuild & Servingâ section and you will see that the type is already selected. Here you will get 3 options:
â Static build
- SSR (Node process)
- Hybrid (Static + API)
You can adjust and choose your preferred one from the dropdown.

Next, go to the âWeb Rootâ section and add the web root of your project. You can check in the click on the âAuto Deploy on Pushâ
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.

Step 7: Configure Advanced Settings (Optional) #
Next, go to the âAdvanced Settingsâ section. This step is optional, but it lets you fine-tune the deployment:
â Node.js Version:
Choose the Node.js version your project needs from the dropdown.
â Database:
Configure the database settings for your project.

Next, enter the contents of your environment file in the â.env Fileâ field. This is where you define the environment variables your project needs at runtime, such as API keys, database credentials, or app-specific configuration values.
You can also add a deploy script for this project. Any commands you enter here will run after the deployment completes, which is useful for tasks like installing dependencies, running migrations, or building assets.

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.

Environment Editor for Node.Js Application #
The Environment section in xCloud allows you to customize configuration settings for your Node.js 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.
