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.













































