Fix Redis requirement, nginx logging, and prisma path
This commit is contained in:
@@ -10,7 +10,8 @@
|
|||||||
"addons": {
|
"addons": {
|
||||||
"postgresql": {},
|
"postgresql": {},
|
||||||
"localstorage": {},
|
"localstorage": {},
|
||||||
"sendmail": {}
|
"sendmail": {},
|
||||||
|
"redis": {}
|
||||||
},
|
},
|
||||||
"manifestVersion": 2,
|
"manifestVersion": 2,
|
||||||
"website": "https://docmost.com",
|
"website": "https://docmost.com",
|
||||||
|
@@ -13,6 +13,10 @@ server {
|
|||||||
fastcgi_temp_path /tmp/nginx_fastcgi_temp;
|
fastcgi_temp_path /tmp/nginx_fastcgi_temp;
|
||||||
uwsgi_temp_path /tmp/nginx_uwsgi_temp;
|
uwsgi_temp_path /tmp/nginx_uwsgi_temp;
|
||||||
scgi_temp_path /tmp/nginx_scgi_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
|
# Enable compression
|
||||||
gzip on;
|
gzip on;
|
||||||
|
12
start.sh
12
start.sh
@@ -31,13 +31,9 @@ export PORT=3001
|
|||||||
# Database configuration
|
# Database configuration
|
||||||
export DATABASE_URL="${CLOUDRON_POSTGRESQL_URL}"
|
export DATABASE_URL="${CLOUDRON_POSTGRESQL_URL}"
|
||||||
|
|
||||||
# Redis configuration (optional)
|
# Redis configuration
|
||||||
if [ -n "${CLOUDRON_REDIS_URL:-}" ]; then
|
export REDIS_URL="${CLOUDRON_REDIS_URL}"
|
||||||
export REDIS_URL="${CLOUDRON_REDIS_URL}"
|
echo "=> Redis configured"
|
||||||
echo "=> Redis configured"
|
|
||||||
else
|
|
||||||
echo "=> Redis not configured - collaborative features may be limited"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Email configuration
|
# Email configuration
|
||||||
export MAIL_DRIVER=smtp
|
export MAIL_DRIVER=smtp
|
||||||
@@ -63,7 +59,7 @@ export JWT_TOKEN_EXPIRES_IN="30d"
|
|||||||
echo "=> Running database migrations"
|
echo "=> Running database migrations"
|
||||||
cd /app/code
|
cd /app/code
|
||||||
chown -R cloudron:cloudron /app/data
|
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
|
# 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
|
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