Fix Redis requirement, nginx logging, and prisma path
This commit is contained in:
@@ -10,7 +10,8 @@
|
||||
"addons": {
|
||||
"postgresql": {},
|
||||
"localstorage": {},
|
||||
"sendmail": {}
|
||||
"sendmail": {},
|
||||
"redis": {}
|
||||
},
|
||||
"manifestVersion": 2,
|
||||
"website": "https://docmost.com",
|
||||
|
@@ -13,6 +13,10 @@ server {
|
||||
fastcgi_temp_path /tmp/nginx_fastcgi_temp;
|
||||
uwsgi_temp_path /tmp/nginx_uwsgi_temp;
|
||||
scgi_temp_path /tmp/nginx_scgi_temp;
|
||||
|
||||
# Log to stdout/stderr instead of files
|
||||
access_log /dev/stdout;
|
||||
error_log /dev/stderr;
|
||||
|
||||
# Enable compression
|
||||
gzip on;
|
||||
|
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