Fix Redis requirement, nginx logging, and prisma path
This commit is contained in:
12
start.sh
12
start.sh
@@ -31,13 +31,9 @@ export PORT=3001
|
||||
# Database configuration
|
||||
export DATABASE_URL="${CLOUDRON_POSTGRESQL_URL}"
|
||||
|
||||
# Redis configuration (optional)
|
||||
if [ -n "${CLOUDRON_REDIS_URL:-}" ]; then
|
||||
export REDIS_URL="${CLOUDRON_REDIS_URL}"
|
||||
echo "=> Redis configured"
|
||||
else
|
||||
echo "=> Redis not configured - collaborative features may be limited"
|
||||
fi
|
||||
# Redis configuration
|
||||
export REDIS_URL="${CLOUDRON_REDIS_URL}"
|
||||
echo "=> Redis configured"
|
||||
|
||||
# Email configuration
|
||||
export MAIL_DRIVER=smtp
|
||||
@@ -63,7 +59,7 @@ export JWT_TOKEN_EXPIRES_IN="30d"
|
||||
echo "=> Running database migrations"
|
||||
cd /app/code
|
||||
chown -R cloudron:cloudron /app/data
|
||||
sudo -u cloudron /usr/bin/node /app/code/node_modules/.bin/prisma migrate deploy || true
|
||||
sudo -u cloudron /usr/bin/node /app/code/apps/server/node_modules/.bin/prisma migrate deploy || true
|
||||
|
||||
# Create nginx temp directories
|
||||
mkdir -p /tmp/nginx_client_temp /tmp/nginx_proxy_temp /tmp/nginx_fastcgi_temp /tmp/nginx_uwsgi_temp /tmp/nginx_scgi_temp
|
||||
|
Reference in New Issue
Block a user