fix: CI — correct nginx config path, add volumes to API container
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,7 @@ jobs:
|
||||
|
||||
- name: Restart API container
|
||||
run: |
|
||||
mkdir -p /opt/hotelsync/uploads /opt/hotelsync/agent-updates
|
||||
docker stop hotelsync-api 2>/dev/null || true
|
||||
docker rm hotelsync-api 2>/dev/null || true
|
||||
docker run -d \
|
||||
@@ -38,6 +39,11 @@ jobs:
|
||||
--network-alias api \
|
||||
--restart unless-stopped \
|
||||
--env-file /opt/hotelsync/.env \
|
||||
-v /opt/hotelsync/uploads:/app/uploads \
|
||||
-v /opt/hotelsync/agent-updates:/app/agent-updates:ro \
|
||||
-e UPLOADS_DIR=/app/uploads \
|
||||
-e CDN_HOST=api.hotelsync.ru/uploads \
|
||||
-e AGENT_UPDATES_DIR=/app/agent-updates \
|
||||
hotelsync-api:latest
|
||||
echo "✅ API started"
|
||||
|
||||
@@ -66,7 +72,7 @@ jobs:
|
||||
echo "✅ CP started"
|
||||
|
||||
- name: Sync nginx config
|
||||
run: cp /opt/hotelsync/app/deploy/nginx/conf.d/hotelsync.conf /opt/hotelsync/nginx/conf.d/hotelsync.conf
|
||||
run: cp /opt/hotelsync/app/nginx/conf.d/hotelsync.conf /opt/hotelsync/nginx/conf.d/hotelsync.conf
|
||||
|
||||
- name: Reload nginx
|
||||
run: docker exec hotelsync-nginx nginx -s reload
|
||||
|
||||
Reference in New Issue
Block a user