aufsetzen_raspberry_lokal
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| aufsetzen_raspberry_lokal [2026/06/12 21:27] – ninin | aufsetzen_raspberry_lokal [2026/06/12 21:52] (current) – ninin | ||
|---|---|---|---|
| Line 82: | Line 82: | ||
| ====15. Static Files==== | ====15. Static Files==== | ||
| python manage.py collectstatic | python manage.py collectstatic | ||
| + | |||
| + | Rechte für Nginx auf das staticfiles-Verzeichnis vergeben: | ||
| + | sudo chown -R :www-data [...]/ | ||
| + | sudo chmod -R 755 [...]/ | ||
| + | sudo chmod o+x / | ||
| | | ||
| ====16. Nginx==== | ====16. Nginx==== | ||
| Line 96: | Line 101: | ||
| | | ||
| location / { | location / { | ||
| - | proxy_pass http:// | + | proxy_pass http:// |
| proxy_set_header Host $host; | proxy_set_header Host $host; | ||
| proxy_set_header X-Real-IP $remote_addr; | proxy_set_header X-Real-IP $remote_addr; | ||
| Line 116: | Line 121: | ||
| ====17. Gunicorn==== | ====17. Gunicorn==== | ||
| + | | ||
| + | |||
| sudo nano / | sudo nano / | ||
| Line 127: | Line 134: | ||
| User=[SYSTEMUSER] | User=[SYSTEMUSER] | ||
| Group=www-data | Group=www-data | ||
| + | RuntimeDirectory=gunicorn | ||
| WorkingDirectory=[...]/ | WorkingDirectory=[...]/ | ||
| - | ExecStart=[...]/ | + | ExecStart=[...]/ |
| | | ||
| [Install] | [Install] | ||
| WantedBy=multi-user.target | WantedBy=multi-user.target | ||
| + | |||
| + | Start and enable the service: | ||
| + | sudo systemctl start gunicorn | ||
| + | sudo systemctl enable gunicorn | ||
aufsetzen_raspberry_lokal.1781299637.txt.gz · Last modified: by ninin
