# Deployment

*Deployment* is a way for setting up Astera projects to run on the *Scheduler*.

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://627607815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xzBT0roYJkfVS5klkLl%2Fuploads%2Fqo6NRHGKLOnp7zVuVoAe%2F0.png?alt=media)

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

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

This will direct you to the general settings tab.

![](https://627607815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xzBT0roYJkfVS5klkLl%2Fuploads%2FPUCz7pqNpPrcABywY5Gt%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://627607815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xzBT0roYJkfVS5klkLl%2Fuploads%2FuhTa2JRczWNwzsyHfJIA%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://627607815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xzBT0roYJkfVS5klkLl%2Fuploads%2F9t2csgKq7kNzoHclp7sZ%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://627607815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xzBT0roYJkfVS5klkLl%2Fuploads%2FvFyt5KgBbkia13yKMVsx%2F5.png?alt=media)

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

![](https://627607815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xzBT0roYJkfVS5klkLl%2Fuploads%2FkT0EIBuZrXVRgGuvJnK5%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://627607815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xzBT0roYJkfVS5klkLl%2Fuploads%2F9MtSFPpmNAYx1sJbjxjI%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://627607815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xzBT0roYJkfVS5klkLl%2Fuploads%2FB6wLaJJA7nSalj4gDONt%2F8.png?alt=media)

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

![](https://627607815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xzBT0roYJkfVS5klkLl%2Fuploads%2FjYokJxhZtKawfqTny8qm%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://627607815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xzBT0roYJkfVS5klkLl%2Fuploads%2FTHPTQMgClTBZBD5MNToI%2F11.png?alt=media)
