# Adding site

This step i assuming you already setup your site, if you using cloudpanel follow this [instruction](https://www.cloudpanel.io/docs/v2/php/applications/laravel/) to add the site first.

Of course you can use your favorite panel too.

### Let's get started

Navigate to server list and click `Site` button.

Next step, add your site information. And then click create.

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

After created, then click `Manage site.`

You will see this page

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

Now lets check if the site is installed successfully, navigate to Deployment Page. And add `php artisan about` to see if it working. Then, click deploy now.

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

Click `Enable Quick Deploy` If you want to activate `Push to Deploy.`&#x20;

Next step, Let's navigate to Repository page.

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

| Section            | Description                                                                                                                                                                  |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Repository         | <p>If your GitHub account is connected with CodeDeploy, you will see a list of your repositories.</p><p></p><p>You can leave this empty if the account is not connected.</p> |
| Branch             | CodeDeploy uses this branch to gather details of the latest commit when you deploy your application.                                                                         |
| Site detail        | CodeDeploy uses this data to deploy your application                                                                                                                         |
| Deploy Webhook URL | You can use this URL to trigger deployments remotely, You can send a "post" request to this URL.                                                                             |

Let's change the branch to the main & generate webhook url

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

Copy the webhook url, and then add it to github.

{% hint style="info" %}
You can skip this step if you did'nt enabled the Quick Deploy

{% endhint %}

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


---

# 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.codecrafters.id/project/code-deploy/how-to-use-it/adding-site.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.
