Fix filesystem readonly issues and pnpm path
This commit is contained in:
@@ -6,6 +6,13 @@ server {
|
|||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
client_max_body_size 100m;
|
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
|
# Enable compression
|
||||||
gzip on;
|
gzip on;
|
||||||
|
6
start.sh
6
start.sh
@@ -58,7 +58,11 @@ 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 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"
|
echo "=> Starting services with supervisor"
|
||||||
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
@@ -15,7 +15,7 @@ autorestart=true
|
|||||||
priority=100
|
priority=100
|
||||||
|
|
||||||
[program:docmost]
|
[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
|
directory=/app/code
|
||||||
stdout_logfile=/dev/stdout
|
stdout_logfile=/dev/stdout
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
|
Reference in New Issue
Block a user