fix(teable): add missing env vars for NestJS config validation
- Add BACKEND_CACHE_PROVIDER=sqlite (no Redis needed) - Add BACKEND_CACHE_SQLITE_URI for sqlite cache path - Add NEXTJS_DIR for next.js app resolution - Create .assets and .temporary dirs for local cache/storage - Fixes 'PRISMA_DATABASE_URL is required' config validation error
This commit is contained in:
@@ -47,6 +47,7 @@ PRISMA_DATABASE_URL="postgresql://teable:${PG_DB_PASS}@localhost:5432/teable?sch
|
|||||||
msg_ok "Ran Database Migrations"
|
msg_ok "Ran Database Migrations"
|
||||||
|
|
||||||
msg_info "Configuring Teable"
|
msg_info "Configuring Teable"
|
||||||
|
mkdir -p /opt/teable/.assets /opt/teable/.temporary
|
||||||
SECRET_KEY=$(openssl rand -base64 32)
|
SECRET_KEY=$(openssl rand -base64 32)
|
||||||
cat <<EOF >/opt/teable/.env
|
cat <<EOF >/opt/teable/.env
|
||||||
PRISMA_DATABASE_URL=postgresql://teable:${PG_DB_PASS}@localhost:5432/teable?schema=public&statement_cache_size=1
|
PRISMA_DATABASE_URL=postgresql://teable:${PG_DB_PASS}@localhost:5432/teable?schema=public&statement_cache_size=1
|
||||||
@@ -55,6 +56,9 @@ SECRET_KEY=${SECRET_KEY}
|
|||||||
PORT=3000
|
PORT=3000
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
NEXT_TELEMETRY_DISABLED=1
|
NEXT_TELEMETRY_DISABLED=1
|
||||||
|
BACKEND_CACHE_PROVIDER=sqlite
|
||||||
|
BACKEND_CACHE_SQLITE_URI=sqlite:///opt/teable/.assets/.cache.db
|
||||||
|
NEXTJS_DIR=apps/nextjs-app
|
||||||
EOF
|
EOF
|
||||||
ln -sf /opt/teable /app
|
ln -sf /opt/teable /app
|
||||||
msg_ok "Configured Teable"
|
msg_ok "Configured Teable"
|
||||||
|
|||||||
Reference in New Issue
Block a user