Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace the domain? #312

Open
swissdaytrader opened this issue Sep 11, 2019 · 1 comment
Open

replace the domain? #312

swissdaytrader opened this issue Sep 11, 2019 · 1 comment

Comments

@swissdaytrader
Copy link

swissdaytrader commented Sep 11, 2019

I follow this instruction https://github.com/rubykube/workbench/wiki/DigitalOcean-Installation

And i can not find the place to add my domain ;)

i need to add my domain to all this 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"
?

Replace domain

Set $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

Thanks for your help

@swissdaytrader swissdaytrader changed the title On wich files i need to replace the domain? replace the domain? Sep 11, 2019
@phuongdev89
Copy link

@swissdaytrader you should use nano or vim to create a bash file name change.sh at /home/workbench/workbench
then paste below script to it

#!/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

then chmod +x change.sh and run it ./change.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants