Deploying your plugins, mods, and server configurations to a <a href="https://www.g-portal.com/" target="_blank">GPortal</a> game server is simple with DeployHQ.

GPortal is a major game server hosting provider supporting 90+ games including Minecraft, ARK, Conan Exiles, Valheim, and many more. They are an official server partner for several popular games. By connecting DeployHQ to your GPortal server via FTP or SFTP, you can automatically deploy plugin updates, configuration changes, and mod files whenever you push to your Git repository.

Firstly, you'll need to set up your DeployHQ project, then connect to your GPortal server.

## 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.

{screenshot: 9}

Next, click **Create project** and you'll be taken to a screen where you can log in with your repository hosting account to authorise access and then choose your repository.

* [Adding a Bitbucket repository](Article: #17)
* [Adding a Codebase repository](Article: #19)
* [Adding a GitHub repository](Article: #21)
* [Adding a GitLab repository](Article: #23)
* [Adding a repository manually](Article: #25)

## Setting up GPortal

Once you've configured your repository, you'll need to connect to your GPortal game server.

First, find your FTP credentials in the GPortal panel:

1. Log in to the <a href="https://www.g-portal.com/" target="_blank">GPortal panel</a>
2. Go to **My Servers** and select your server
3. Click **Status** in the left menu — your FTP access details (hostname, username, password) are displayed here
4. Alternatively, go to **Manage > File Manager** and look for the **Connect to SFTP** button

Head to **Servers & Groups** in DeployHQ, and click the **New Server** button. Choose **FTP** or **SSH/SFTP** as the protocol (depending on what GPortal shows for your server).

Enter the following details:

- **Hostname**: The FTP/SFTP hostname shown in your GPortal panel
- **Username**: Your FTP username
- **Password**: Your FTP password
- **Port**: As shown in the panel (typically `21` for FTP)

Then set the **Deployment path**. The path structure depends on your game:

- **Minecraft plugins**: `/plugins/`
- **Minecraft mods**: `/mods/`
- **Minecraft configuration**: `/` (root)
- **ARK mods**: `/ShooterGame/Content/Mods/`
- **Conan Exiles mods**: `/ConanSandbox/Mods/`
- **Valheim mods (BepInEx)**: `/BepInEx/plugins/`

Under **Deployment options**, you can enable automatic deployments and set a **Deployment subdirectory** if your repository has files in a subfolder.

Click **Create Server** to save, then proceed to your first deployment.

## Run your first deployment

By default, DeployHQ will upload your entire repository on the first deployment, since there's no previously deployed commit to compare against.

If your files are already on the server and up to date with the latest commit, you can skip that initial upload:

* [Don't deploy your whole repository on the first deployment](Article: #129)

Otherwise, follow this guide to start your first deployment — after the first run, only changed files will be uploaded:

* [Running your first deployment](Article: #43)

That's it! You've now set up automated deployments to your GPortal game server.

## Game Panel integration (coming soon)

DeployHQ is adding native <a href="https://www.deployhq.com/blog/game-panel-integration-deploy-game-server-from-git" target="_blank">Game Panel integration</a>, starting with Pterodactyl protocol support in beta. If your hosting provider uses Pterodactyl (or a fork like Pelican), you will soon be able to connect directly without manual SFTP/FTP configuration.

## Further reading

* Compile assets with the [Build pipeline](Article: #301)
* Prevent certain files from uploading using [Excluded files](https://www.deployhq.com/support/excluded-files)
* Keep sensitive config out of your repository using [Config files](Article: #47)
* Notify your team and integrate with other services via [Integrations](Article: #327)

----------

_Need help with your deployment? Check out our [documentation](https://www.deployhq.com/support) or [contact our support team](https://www.deployhq.com/contact) for assistance._
