fix: change deploy for permission again
This commit is contained in:
@@ -49,9 +49,6 @@ jobs:
|
|||||||
|
|
||||||
cd $APP_DIR
|
cd $APP_DIR
|
||||||
|
|
||||||
# Keep a stable compose project name to avoid accidental new resource names
|
|
||||||
export COMPOSE_PROJECT_NAME=skymoney
|
|
||||||
|
|
||||||
# Validate migration target before touching containers
|
# Validate migration target before touching containers
|
||||||
export EXPECTED_PROD_DB_HOST="${EXPECTED_PROD_DB_HOST:-postgres}"
|
export EXPECTED_PROD_DB_HOST="${EXPECTED_PROD_DB_HOST:-postgres}"
|
||||||
export EXPECTED_PROD_DB_NAME="${EXPECTED_PROD_DB_NAME:-skymoney}"
|
export EXPECTED_PROD_DB_NAME="${EXPECTED_PROD_DB_NAME:-skymoney}"
|
||||||
@@ -59,7 +56,7 @@ jobs:
|
|||||||
bash ./scripts/validate-prod-db-target.sh
|
bash ./scripts/validate-prod-db-target.sh
|
||||||
|
|
||||||
# Build and start all services
|
# Build and start all services
|
||||||
sudo -E docker-compose up -d --build
|
sudo docker-compose -p skymoney up -d --build
|
||||||
|
|
||||||
# Wait for database to be ready
|
# Wait for database to be ready
|
||||||
sleep 10
|
sleep 10
|
||||||
@@ -72,7 +69,7 @@ jobs:
|
|||||||
bash ./scripts/backup.sh
|
bash ./scripts/backup.sh
|
||||||
|
|
||||||
# Run Prisma migrations inside the API container
|
# Run Prisma migrations inside the API container
|
||||||
sudo -E docker-compose exec -T api npx prisma migrate deploy
|
sudo docker-compose -p skymoney exec -T api npx prisma migrate deploy
|
||||||
|
|
||||||
- name: Reload Nginx
|
- name: Reload Nginx
|
||||||
run: sudo systemctl reload nginx
|
run: sudo systemctl reload nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user