Update tianji-install.sh: Add OPENAI_API_KEY to .env (#1480)

This commit is contained in:
Michel Roegl-Brunner 2025-01-14 16:23:46 +01:00 committed by GitHub
parent 2fff2079ef
commit 349cfb28b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,6 +74,7 @@ $STD pnpm build:server
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
cat <<EOF >/opt/tianji/src/server/.env
DATABASE_URL="postgresql://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME?schema=public"
OPENAI_API_KEY=""
JWT_SECRET="$TIANJI_SECRET"
EOF
cd /opt/tianji/src/server