mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
deploy.sh: add systemd deployment instruction
This commit is contained in:
parent
fc411bb214
commit
75e671a96f
24
deploy.sh
24
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user