fix(lxc): explicitly pass NEXTAUTH_URL to standalone pm2 start

This commit is contained in:
mARTin 2026-03-02 13:58:46 +01:00
parent 667b3f3b37
commit 6103ecc417
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "my-weekly-todo-list",
"version": "1.10.2",
"version": "1.10.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "my-weekly-todo-list",
"version": "1.10.2",
"version": "1.10.3",
"license": "MIT",
"dependencies": {
"@auth/prisma-adapter": "^2.11.1",

View File

@ -1,6 +1,6 @@
{
"name": "my-weekly-todo-list",
"version": "1.10.2",
"version": "1.10.3",
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
"main": "index.js",
"scripts": {

View File

@ -26,7 +26,7 @@ npm run build
echo -e "${YELLOW}Step 6: Restarting server with PM2 (Standalone Mode)...${NC}"
# Delete old process if it exists to ensure fresh config
pm2 delete my-weekly-todo || true
PORT=3002 pm2 start .next/standalone/server.js --name "my-weekly-todo"
PORT=3002 NEXTAUTH_URL=https://todo.martin-bierschenk.de pm2 start .next/standalone/server.js --name "my-weekly-todo"
pm2 save
echo -e "${GREEN}Update complete! App is running on LXC.${NC}"