# Deployment

*Deployment* is a way for setting up Astera projects to run on the [*Scheduler*](https://documentation.astera.com/v/astera-data-stack-v8/project-management/job-scheduling/scheduling-jobs-on-the-server).

When you are deploying a project, you can also specify parameters by creating a config file for project archive (.car) files to run project flows independent of any local parameters.

In this document, we will learn how to deploy projects in Astera Data Stack.

## **Deploying a Project on Astera**

1. Go to *Server > Server Explorer*. This will open a *Server Explorer* panel.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FWGKR9EI73HT9i1DIDvm9%2F0.png?alt=media)

2. On the *Server Explorer* panel, right-click on the *DEFAULT* server node, and select *Cluster Settings*.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FuRjM2yJH6y5tmjF8M7g2%2F1.png?alt=media)

This will direct you to the general settings tab.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2F833LJxSNxxGAa627vA7M%2F2.png?alt=media)

3. In the general settings tab, specify the *Deployment Directory* path. The *Deployment Directory* is the location where the deployment files will be stored for the server to access when a deployment schedule is run.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FUR8eUVF06xllLBW2PHY3%2F3.png?alt=media)

4. Now, open the project that you want to deploy on Astera's Server by going to *Project > Open* and direct it to the .cprj file. This will open the selected project in the Project Explorer panel.

{% hint style="info" %}
**Note:** .cprj file refers to a refers to a project file in the Astera Data Stack.
{% endhint %}

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2Fr5w7n8U6LOkbE5wbQCRe%2F4.png?alt=media)

5. In the *Project Explorer* panel, right-click on the *Project* node, and select *Build Archive (.Car) for the Project* from the context menu.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FvEOfDukpy1u0CO7U9FsV%2F5.png?alt=media)

6. Save this archive file on your system.
7. Now, open the *Deployment* window. Go to *Server > Deployment.*

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FHoyLP8zZsZ6BzLDW7ASR%2F6.png?alt=media)

This will direct you to the main *Deployment* screen.

8. Click the *Add Deployment* icon to add a new deployment.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FMUamVCBtEojN1VltcP99%2F7.png?alt=media)

9. Configure deployment settings by providing the following details:
   * *Name*
   * *Archive File Path* (\*.car)
   * *Config File Path* (an optional file to specify project parameters)
   * *Comment* (**optional**)

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2F7nYhTaSc36DkmsRuaPk2%2F8.png?alt=media)

10. Save this deployment by clicking the *Save Deployment* icon ![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2F2NP7Alz9S3b3sDOmktzI%2F9.png?alt=media)and it will be added to the list of deployed projects.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FTY43YoumAChavu0aY9Mv%2F10.png?alt=media)

Multiple deployments can be configured on the cluster from the deployment window. The top part of the deployment screen shows the configured deployment files.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FRwCdo5XSG1i6umWSoDep%2F11.png?alt=media)
