fix:deploy

This commit is contained in:
2026-03-10 01:46:40 +09:00
parent ce14c4129f
commit e6932648a0
3 changed files with 13 additions and 3 deletions

View File

@@ -4,8 +4,16 @@ set -e
echo "Pulling latest code..."
git pull
echo "Building and restarting containers..."
docker compose up -d --build
echo "Building frontend..."
docker compose --profile build build frontend-builder
docker compose --profile build run --rm frontend-builder
echo "Copying frontend dist to nginx..."
sudo mkdir -p /var/www/support-ticket-demo
sudo cp -r frontend/dist/. /var/www/support-ticket-demo/
echo "Building and restarting backend..."
docker compose up -d --build backend
echo "Cleaning up old images..."
docker image prune -f