From 75e671a96f40af01fca8d4857926c811dfc22c41 Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 5 Aug 2022 09:44:24 +0800 Subject: [PATCH] deploy.sh: add systemd deployment instruction --- deploy.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/deploy.sh b/deploy.sh index 81e8e7431..0cdc48f5f 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,4 +1,28 @@ #!/bin/bash +# +# Setup: +# +# 1) Make sure that you have the SSH host called "bbgo" and your linux system has systemd installed. +# +# 2) Use ssh to connect the bbgo host +# +# $ ssh bbgo +# +# 3) On the REMOTE server, create directory, setup the dotenv file and the bbgo.yaml config file +# $ mkdir bbgo +# $ vim bbgo/.env.local +# $ vim bbgo/bbgo.yaml +# +# 4) Make sure your REMOTE user can use SUDO WITHOUT PASSWORD. +# +# 5) Run the following command to setup systemd from LOCAL: +# +# $ SETUP_SYSTEMD=yes sh deploy.sh bbgo +# +# 6) To update your existing deployment, simply run deploy.sh again: +# +# $ sh deploy.sh bbgo +# set -e target=$1