Fix filesystem readonly issues and pnpm path
This commit is contained in:
@@ -7,6 +7,13 @@ server {
|
||||
|
||||
client_max_body_size 100m;
|
||||
|
||||
# Create temporary directories in writable locations
|
||||
client_body_temp_path /tmp/nginx_client_temp;
|
||||
proxy_temp_path /tmp/nginx_proxy_temp;
|
||||
fastcgi_temp_path /tmp/nginx_fastcgi_temp;
|
||||
uwsgi_temp_path /tmp/nginx_uwsgi_temp;
|
||||
scgi_temp_path /tmp/nginx_scgi_temp;
|
||||
|
||||
# Enable compression
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
|
6
start.sh
6
start.sh
@@ -58,7 +58,11 @@ export JWT_TOKEN_EXPIRES_IN="30d"
|
||||
echo "=> Running database migrations"
|
||||
cd /app/code
|
||||
chown -R cloudron:cloudron /app/data
|
||||
sudo -u cloudron pnpm prisma migrate deploy || true
|
||||
sudo -u cloudron /usr/bin/node /app/code/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
|
||||
chown -R cloudron:cloudron /tmp/nginx_*
|
||||
|
||||
echo "=> Starting services with supervisor"
|
||||
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
@@ -15,7 +15,7 @@ autorestart=true
|
||||
priority=100
|
||||
|
||||
[program:docmost]
|
||||
command=/usr/bin/sudo -u cloudron /usr/bin/pnpm start:server
|
||||
command=/usr/local/bin/gosu cloudron:cloudron /usr/bin/node /app/code/apps/server/dist/main.js
|
||||
directory=/app/code
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
|
Reference in New Issue
Block a user