From 9b811aed38c2850fbc3bf7d9bc697d6776fa06a5 Mon Sep 17 00:00:00 2001 From: Romain PINSOLLE <53913510+TuroYT@users.noreply.github.com> Date: Mon, 3 Nov 2025 18:23:29 +0100 Subject: [PATCH 1/2] Add DATABASE_URL to snowshare-install.sh --- install/snowshare-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/snowshare-install.sh b/install/snowshare-install.sh index d31695b64..2f2865480 100644 --- a/install/snowshare-install.sh +++ b/install/snowshare-install.sh @@ -44,6 +44,7 @@ NEXTAUTH_SECRET="$(openssl rand -base64 32)" ALLOW_SIGNUP=true NODE_ENV=production EOF +DATABASE_URL="postgresql://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME" $STD npx prisma generate $STD npx prisma migrate deploy $STD npm run build From 396f1380295c446afa8a72c5a5b646d54623dfac Mon Sep 17 00:00:00 2001 From: Romain PINSOLLE Date: Mon, 3 Nov 2025 18:47:58 +0100 Subject: [PATCH 2/2] fix env for build --- install/snowshare-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/snowshare-install.sh b/install/snowshare-install.sh index 2f2865480..31395dca9 100644 --- a/install/snowshare-install.sh +++ b/install/snowshare-install.sh @@ -44,7 +44,9 @@ NEXTAUTH_SECRET="$(openssl rand -base64 32)" ALLOW_SIGNUP=true NODE_ENV=production EOF -DATABASE_URL="postgresql://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME" +set -a +source /opt/snowshare.env +set +a $STD npx prisma generate $STD npx prisma migrate deploy $STD npm run build