## Setting up your project

Head to the **Projects** screen in DeployHQ, then click the **New Project** button to get started. You'll be prompted to enter a name for your project, then select where your repository is hosted. Next, click **Create project** and you'll be taken to a screen where you can log in with your repository hosting account to authorize access and then choose your repository.

Repository Links:

-   [Adding a Bitbucket repository](https://www.deployhq.com/support/projects/creating-a-project/bitbucket)
-   [Adding a Codebase repository](https://www.deployhq.com/support/projects/creating-a-project/codebase)
-   [Adding a GitHub repository](https://www.deployhq.com/support/projects/creating-a-project/github)
-   [Adding a GitLab repository](https://www.deployhq.com/support/projects/creating-a-project/gitlab)
-   [Adding a repository manually](https://www.deployhq.com/support/projects/creating-a-project/manually)

## Setting up your A2 Hosting server

Once you've configured your repository, you'll need to connect to your A2 Hosting server. Head to **Servers & Groups**, and click the **New Server** button at the top of the screen.
Start by entering a name, and choosing SSH/SFTP as the protocol.

To find your SSH credentials:

1.  Log into your A2 Hosting Client Area
2.  Navigate to "Hosting" or "Manage Hosting" section
3.  Select your specific hosting account
4.  Go to "FTP/SSH Access" or "SSH Access" settings
5.  View or generate SSH credentials

Important A2 Hosting SSH Access Notes:

-   SSH access is available for most A2 Hosting plans
-   Ensure SSH is enabled in your hosting control panel
-   Use SSH keys for enhanced security
-   Two-factor authentication recommended

Typical A2 Hosting Server Formats:

-   Server Instance: `yourdomain.com` or `servername.a2hosting.com`
-   Hostname: Typically found in your hosting account details

You can use an SSH key instead of a password by taking the SSH key in your DeployHQ server configuration page and pasting it in your A2 Hosting server's `~/.ssh/authorized_keys`.

Connection Troubleshooting:

-   Verify SSH is enabled in cPanel
-   Confirm correct hostname
-   Ensure you're using the correct username (typically your cPanel username)
-   Check network security settings
-   Validate credentials in A2 Hosting client area

Typical Web Application Path:

-   Standard Deployment: `/home/yourusername/public_html/`
-   Web Root: `/home/yourusername/public_html/`

Within **Deployment options**, you can choose to automatically deploy your server and specify a **Deployment subdirectory** if needed.

## Run your first deployment

By default, DeployHQ will upload the whole repository to your server on the first deployment.
Helpful Deployment Guides:

-   [Don't deploy your whole repository on the first deployment](https://www.deployhq.com/support/deployments/starting-a-deployment/skip-deploying-from-scratch)
-   [Using Accelerated TAR Deployments](https://www.deployhq.com/support/deployments/turbo-deployments)
-   [Running your first deployment](https://www.deployhq.com/support/deployments/starting-a-deployment)

## Further reading

DeployHQ features to enhance your deployments:

-   Compiling assets with the [Build pipeline](https://www.deployhq.com/support/build-pipelines)
-   Running server commands with [SSH commands](https://www.deployhq.com/support/ssh-commands)
-   [Excluded files](https://www.deployhq.com/support/excluded-files)
-   [Config files](https://www.deployhq.com/support/config-files)
-   [Integrations](https://www.deployhq.com/support/integrations)

----------
_Want to learn more about deployment? Check out our [documentation](https://www.deployhq.com/support) or [contact our support team](https://www.deployhq.com/contact) for assistance._

## Set up automated deployments to A2 Hosting

With DeployHQ connected to your A2 Hosting server, every Git push can compile through a [configurable build pipeline](https://www.deployhq.com/features/build-pipelines), roll out with [zero-downtime deployments](https://www.deployhq.com/features/zero-downtime-deployments), and run [automatically on each push](https://www.deployhq.com/features/automatic-deployments) — no manual uploads. [Sign up for a free DeployHQ account](https://www.deployhq.com/signup) and connect your repository to get started.

Working with a particular framework? Follow our walkthroughs to [deploy a Laravel app](https://www.deployhq.com/guides/laravel) or [deploy a WordPress site](https://www.deployhq.com/guides/wordpress) on A2 Hosting.