kopia lustrzana https://github.com/bugout-dev/moonstream
Robots deployment from api repo
rodzic
ac1a75d043
commit
820adb4ce3
|
@ -14,7 +14,7 @@ PREFIX_WARN="${C_YELLOW}[WARN]${C_RESET} [$(date +%d-%m\ %T)]"
|
|||
PREFIX_CRIT="${C_RED}[CRIT]${C_RESET} [$(date +%d-%m\ %T)]"
|
||||
|
||||
# Main
|
||||
APP_DIR="${APP_DIR:-/home/ubuntu/engine/robots}"
|
||||
APP_DIR="${APP_DIR:-/home/ubuntu/api/robots}"
|
||||
AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION:-us-east-1}"
|
||||
SCRIPT_DIR="$(realpath $(dirname $0))"
|
||||
SECRETS_DIR="${SECRETS_DIR:-/home/ubuntu/robots-secrets}"
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
[Unit]
|
||||
Description=Airdrop Engine robots
|
||||
Description=Airdrop robots
|
||||
After=network.target
|
||||
StartLimitIntervalSec=300
|
||||
StartLimitBurst=3
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/home/ubuntu/engine/robots
|
||||
WorkingDirectory=/home/ubuntu/api/robots
|
||||
EnvironmentFile=/home/ubuntu/robots-secrets/app.env
|
||||
Restart=on-failure
|
||||
RestartSec=15s
|
||||
ExecStart=/home/ubuntu/engine/robots/robots airdrop
|
||||
ExecStart=/home/ubuntu/api/robots/robots airdrop
|
||||
SyslogIdentifier=robots-airdrop
|
||||
|
||||
[Install]
|
||||
|
|
Ładowanie…
Reference in New Issue