Fix static file permissions for nginx access
- Set ownership of static/ directory to www-data:www-data - This resolves 'Permission denied' errors when nginx tries to serve static files like the logo
This commit is contained in:
1 parent
4dc2b1b8c3
commit
3f1b5d1cb8
1 file changed
+2
@@ -85,6 +85,8 @@ fi
|
||||
log_info "Setting permissions for static files..."
|
||||
chmod -R 755 static/
|
||||
find static/ -type f -exec chmod 644 {} \;
|
||||
# Ensure nginx can access static files
|
||||
sudo chown -R www-data:www-data static/
|
||||
|
||||
# Create Python virtual environment
|
||||
log_info "Creating Python virtual environment..."
|
||||
|
||||
Reference in new issue
Block a user