Merge pull request #804 from moonstream-to/struct-moonstreamapi

Updated moonstreamapi placement
pull/812/head
Sergei Sumarokov 2023-06-06 08:30:52 -07:00 zatwierdzone przez GitHub
commit 10a3123b30
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
56 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -15,7 +15,6 @@ PREFIX_CRIT="${C_RED}[CRIT]${C_RESET} [$(date +%d-%m\ %T)]"
# Main
APP_DIR="${APP_DIR:-/home/ubuntu/moonstream}"
APP_BACKEND_DIR="${APP_DIR}/backend"
AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION:-us-east-1}"
PYTHON_ENV_DIR="${PYTHON_ENV_DIR:-/home/ubuntu/moonstream-env}"
PYTHON="${PYTHON_ENV_DIR}/bin/python"
@ -37,7 +36,7 @@ echo -e "${PREFIX_INFO} Upgrading Python pip and setuptools"
echo
echo
echo -e "${PREFIX_INFO} Installing Python dependencies"
"${PIP}" install -e "${APP_BACKEND_DIR}/"
"${PIP}" install -e "${APP_DIR}/moonstreamapi/"
echo
echo

Wyświetl plik

@ -5,7 +5,7 @@ StartLimitIntervalSec=300
StartLimitBurst=3
[Service]
WorkingDirectory=/home/ubuntu/moonstream/backend
WorkingDirectory=/home/ubuntu/moonstream/moonstreamapi
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
Restart=on-failure
RestartSec=15s