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
|
- name: Restart API container
|
||||||
run: |
|
run: |
|
||||||
|
mkdir -p /opt/hotelsync/uploads /opt/hotelsync/agent-updates
|
||||||
docker stop hotelsync-api 2>/dev/null || true
|
docker stop hotelsync-api 2>/dev/null || true
|
||||||
docker rm hotelsync-api 2>/dev/null || true
|
docker rm hotelsync-api 2>/dev/null || true
|
||||||
docker run -d \
|
docker run -d \
|
||||||
@@ -38,6 +39,11 @@ jobs:
|
|||||||
--network-alias api \
|
--network-alias api \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
--env-file /opt/hotelsync/.env \
|
--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
|
hotelsync-api:latest
|
||||||
echo "✅ API started"
|
echo "✅ API started"
|
||||||
|
|
||||||
@@ -66,7 +72,7 @@ jobs:
|
|||||||
echo "✅ CP started"
|
echo "✅ CP started"
|
||||||
|
|
||||||
- name: Sync nginx config
|
- 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
|
- name: Reload nginx
|
||||||
run: docker exec hotelsync-nginx nginx -s reload
|
run: docker exec hotelsync-nginx nginx -s reload
|
||||||
|
|||||||
Reference in New Issue
Block a user