This guide explains how to add your server to Deploy HQ


Steps


First we need to allow the Deploy HQ IP addresses, to check the IP addresses listed in this article are up to date, please check here.

  1. First you need to log into your Nimbus Hosting account.

  2. Once logged in, you will be taken to the dashboard.

  3. From the dashboard click on Security.

  4. Click the Add Record button from within the Allowed IP section.

  5. Add the following IPv4 ranges to the Allowed IP's list ensuring that they are set to never expire:

    1. 185.22.208.0/25

    2. 185.22.211.0/24

  6. Add the following IPv6 ranges to the Allowed IP's list ensuring that they are set to never expire: 
    1. 2a03:2800:0300::/64
    2. 2a00:67a0:a:1::/64


Next we simply add the server to Deploy HQ under the SSH/SFTP Protocol.

  1. Log into deployhq.com
  2. Navigate to your project.

  3. Click Add Server.

  4. Enter the name of the server.

  5. Select SSH/SFTP under Protocol.

  6. Enter your SSH details (Hostname, Username, Password) you can find these details under the SSH section of your website on the Nimbus Hosting platform.

  7. Select the rest of the options you want for your deployment and configuration.



Zero Downtime Deployments


If you would like the use the zero downtime feature which DeployHQ offers, the following steps must be taken to ensure that it works successfully:


  1. When creating the site in the Nimbus Hosting platform ensure that the custom path is set to something along the lines of deployment/current ("deployment" can be anything you like)
  2. Once the website is created, navigate to the PHP page and add the following php setting:
    opcache.enable = 0
    without this, you will experience problems relating to changes not being seen on the site anfter a deployment.
  3. Connect to your Nimbus Hosting server, either via SSH or FTPS, and delete the current folder along with it's contents.
  4. When setting up the deployment in DeployHQ, enter the custom path as it was configured in your Nimbus Hosting platform. (deployment/current)
  5. Deploy the site to your Nimbus Hosting server - If all worked successfully, DeployHQ should have created the folder structure which it requires including recreating the current folder.