Skip to content

Commit b5535ba

Browse files
Fix permissions for Laravel storage in nixpacks.toml
1 parent 3d70073 commit b5535ba

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

InstaRepas/nixpacks.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ cmd = '/assets/start.sh'
2020
# Transform the nginx configuration
2121
node /assets/scripts/prestart.mjs /assets/nginx.template.conf /etc/nginx.conf
2222
23+
# Fix permissions for Laravel storage
24+
mkdir -p /app/storage/logs
25+
mkdir -p /app/storage/framework/{cache,sessions,views}
26+
chown -R www-data:www-data /app/storage
27+
chmod -R 775 /app/storage
28+
29+
2330
# Start supervisor
2431
supervisord -c /etc/supervisord.conf -n
2532
'''

nixpacks.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ cmd = '/assets/start.sh'
2020
# Transform the nginx configuration
2121
node /assets/scripts/prestart.mjs /assets/nginx.template.conf /etc/nginx.conf
2222
23+
# Fix permissions for Laravel storage
24+
mkdir -p /app/storage/logs
25+
mkdir -p /app/storage/framework/{cache,sessions,views}
26+
chown -R www-data:www-data /app/storage
27+
chmod -R 775 /app/storage
28+
29+
2330
# Start supervisor
2431
supervisord -c /etc/supervisord.conf -n
2532
'''

0 commit comments

Comments
 (0)