fix:deploy

This commit is contained in:
2026-03-10 02:17:02 +09:00
parent c13bc55998
commit b1c45b9e8a
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ await app.register(session, {
cookie: {
httpOnly: true,
secure: isProd, // HTTPS-only in production
sameSite: isProd ? "strict" : "lax", // strict in prod, lax in dev
sameSite: "lax",
maxAge: 7 * 24 * 60 * 60 * 1000, // 7 days in ms
},
saveUninitialized: false,

View File

@@ -13,7 +13,7 @@ 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
docker compose up -d --build --remove-orphans backend
echo "Cleaning up old images..."
docker image prune -f