Skip to content

Set up with custom domain

Ali Shanaakh edited this page Oct 1, 2018 · 4 revisions

Recursive clone

$> git clone --recursive https://github.com/rubykube/workbench.git

Move to workbench

$> cd workbench

Update submodules to latest versions

$> make update

Expose ports

Expose following ports of workbench machine:

  • 443
  • 80

Replace domain

Put $new_domain variable equal to your domain and run bash script:

#!/bin/bash

old_domain="wb.local" 
new_domain="your.domain"

files=(
    "compose/proxy.yaml"
    "compose/backend.yaml"
    "compose/app.yaml"
    "config/trading-ui.env"
    "compose/cryptonodes.yaml"
    "config/integration/fixtures/barong.json"
    "config/integration/fixtures/peatio.json"
    "config/peatio.env"
    "config/barong.env"
    "config/barong/seeds.yml"
    "config/toolbox.yaml"
)

for file in ${files[@]}; do
    sed -i "s/${old_domain}/${new_domain}/g" ${file}
done

Build images

$> make build

Run the application

$> make run

Post installation

After deployment, height of blockchains should be updated to start receiving deposits.

Go to Blockchains Tab in Peatio Admin Panel and update height

Best way to find current blockchains height:

  1. Ethereum Rinkeby Blockchain Explorer
  2. Bitcoin Testnet Blockchain Explorer
Clone this wiki locally