From b1c45b9e8a4fe1569f62b71a3f9128f1f1a07df0 Mon Sep 17 00:00:00 2001 From: kokopi Date: Tue, 10 Mar 2026 02:17:02 +0900 Subject: [PATCH] fix:deploy --- backend/src/index.ts | 2 +- deploy.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 428bbf9..56288ee 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -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, diff --git a/deploy.sh b/deploy.sh index 5ff3bde..fb6132c 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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