Readme - Ubuntu Server

This installation script is tested on Ubuntu Server 18.04.3 LTS. The script will install the Deployify server in the current directory.

Update your Ubuntu server before you install Deployify.

Preparations:

  • Get a domain.
  • Add these records and point them to your internet IP address:
    app.{domain}
    api.{domain}
  • In your router, port forward 80, 81, and 443 to your server IP address.

 

Installation:

  1. curl -L https://deployify.io/download_file/129/0 -o install.sh
  2. sudo sh install.sh {username} {domain}


Examples for #2:

sudo sh install.sh prince deployify.io


If the installation was successful, you should be able to access the website on this address: http://app.{domain}
As soon as the server can be accessed from internet, the server will enable SSL.


After installation:


Global admin:

  1. Sign in.
  2. Click on "Global settings".
  3. Claim the Global admin role.
  4. Sign out and in again.

Now you can change global server settings.

Logs:

Site and Redbird proxy (no sudo):

pm2 logs

API:

sudo journalctl | grep mdc-api-linux

 

Backup and restore:

 

Backup:
 

sudo {installDir}/server/backup-linux backup
sudo {installDir}/server/backup-linux backup {output}


Restore:

sudo {installDir}/server/backup-linux restore {input}

 

Important security notice:

Deployify is using Vault (https://www.vaultproject.io/) to store hashed passwords. The storage is sealed and needs to be unsealed on every startup. The keys are, for the sake of simplicity, stored on the server to unlock the Vault on server startup.

All 6 keys are stored in {installDir}\keys.json.

To utilize the security of Vault, no key should be stored here. Move the key file to a safe place and enable webUnseal instead.

Unseal From Website:

The keys.json file will look something like this:
["asd98er0rt908df09ds09sdf", "12390a8sd90re908waasd098", "sad45fdewr897e89ga", "54098etrgfbv09834"]

Take each key (without quotations) and paste them in the form. Every key should be on its own row, so hit enter after each key you paste.

Like this:
asd98er0rt908df09ds09sdf
12390a8sd90re908waasd098


Update existing installation:

  1. curl -L https://deployify.io/download_file/136/0 -o update.sh
  2. sudo sh update.sh {username}