kopia lustrzana https://github.com/bugout-dev/moonstream
Updated moonstreamapi placement
rodzic
43a8e09d35
commit
b07c77c138
|
@ -15,7 +15,6 @@ PREFIX_CRIT="${C_RED}[CRIT]${C_RESET} [$(date +%d-%m\ %T)]"
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
APP_DIR="${APP_DIR:-/home/ubuntu/moonstream}"
|
APP_DIR="${APP_DIR:-/home/ubuntu/moonstream}"
|
||||||
APP_BACKEND_DIR="${APP_DIR}/backend"
|
|
||||||
AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION:-us-east-1}"
|
AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION:-us-east-1}"
|
||||||
PYTHON_ENV_DIR="${PYTHON_ENV_DIR:-/home/ubuntu/moonstream-env}"
|
PYTHON_ENV_DIR="${PYTHON_ENV_DIR:-/home/ubuntu/moonstream-env}"
|
||||||
PYTHON="${PYTHON_ENV_DIR}/bin/python"
|
PYTHON="${PYTHON_ENV_DIR}/bin/python"
|
||||||
|
@ -37,7 +36,7 @@ echo -e "${PREFIX_INFO} Upgrading Python pip and setuptools"
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo -e "${PREFIX_INFO} Installing Python dependencies"
|
echo -e "${PREFIX_INFO} Installing Python dependencies"
|
||||||
"${PIP}" install -e "${APP_BACKEND_DIR}/"
|
"${PIP}" install -e "${APP_DIR}/moonstreamapi/"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
|
@ -5,7 +5,7 @@ StartLimitIntervalSec=300
|
||||||
StartLimitBurst=3
|
StartLimitBurst=3
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/home/ubuntu/moonstream/backend
|
WorkingDirectory=/home/ubuntu/moonstream/moonstreamapi
|
||||||
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=15s
|
RestartSec=15s
|
Ładowanie…
Reference in New Issue