# Re-deploying your app

#### Deploy vs Redeploy

The first time that you create an app, you should deploy the app within Health Universe. Health Universe creates a secure container for the app, configures that virtual environment, compiles the code, and does a number of configurations to make sure that they app runs within the Navigator or Health Universe environment.

Once you've successfully deployed an app, you should use re-deploy. This allows you to update and change the code, but the rest of the app container and configuration remains the same. Redeployment is the most efficient (and effective) way to incorporate changes in your code. If you deploy the same app multiple times, you'll get unstable behaviors in Navigator, and difficultly in finding (and using) the apps that you've deployed.

#### 1. **Push Changes to GitHub**

Before redeploying, make sure all your updates are committed and pushed to your app's GitHub repository:

```bash
git add .
git commit -m "Your update message"
git push origin main
```

> 🔁 Ensure you're pushing to the branch connected to your Health Universe app (usually `main`).

#### 2. Redeploy on Health Universe

Once your changes are live on GitHub:

* **Go to your app** on [Health Universe](https://www.healthuniverse.com/).
* Click **Deployments** on the top right of the navigation bar.

  <figure><img src="/files/N4AsxRDdINeegmM0IiyS" alt=""><figcaption></figcaption></figure>
* Find and click the production deployment box.

  <figure><img src="/files/U84FJheyE2QWKsu98qJR" alt=""><figcaption></figcaption></figure>
* Click the **Redeploy Button**.

  <figure><img src="/files/DIKctcY9SRUHn2UIYZun" alt=""><figcaption></figcaption></figure>

#### 3. Review Deployment Logs

* After triggering a redeploy, **click the Build Logs** box to open it.
* Review the **logs** to confirm the app is rebuilding and redeploying successfully.

#### 4. Launch Your Updated App

* **Refresh the page** after deployment completes.
* Click **Launch** to open and verify your changes are live.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.healthuniverse.com/overview/re-deploying-your-app.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
