> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oriv.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Deploy a Node.js Application with ORIV

> Learn how to quickly deploy, configure, and scale your Node.js app on ORIV without complex server setup or maintenance.

Deploying an application can often involve complex configurations and server management tasks. With [**ORIV**](https://oriv.cloud/), this process becomes simple, automated, and developer-friendly.

ORIV provides an intuitive interface that allows you to easily deploy, manage, and scale your [**Node.js**](https://oriv.cloud/node-js-hosting/) 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 ORIV:

## Step 1: Create a New Site

To begin deployment, click on the **‘Add New Site’** button from your ORIV dashboard. You will then be asked to choose the **server** where you want to deploy your Git project.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

## 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.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

### **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 ORIV 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.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

## **Step 2: Set Up Domains**

Then go to the **‘Staging Domain’** tab. ORIV 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.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

## **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.**

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

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.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

### **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.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

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.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

## **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 **ORIV.**

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

## **Environment Editor for Node.Js Application**

The Environment section in ORIV 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.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

## **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.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

Deploying a Node.js application with ORIV 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 ORIV, developers can focus on building and improving their Node.js applications while ORIV takes care of the infrastructure behind the scenes.

Still stuck? Contact our [**support team**](https://oriv.cloud/support) for any of your queries.
