deployment_raspberry
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| deployment_raspberry [2025/10/15 20:44] – ninin | deployment_raspberry [2025/10/20 19:50] (current) – ninin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ip ermitteln: | + | === Allgemein === |
| - | login: ssh user@ip | + | IP ermitteln: |
| + | arp -a | ||
| + | |||
| + | login: | ||
| + | | ||
| Virtual environment | Virtual environment | ||
| Line 14: | Line 18: | ||
| - | ### Turn off power management for network adapter | + | === Turn off power management for network adapter |
| Create a new systemd service file: | Create a new systemd service file: | ||
| Line 43: | Line 47: | ||
| or reboot the Pi for it to take effect: | or reboot the Pi for it to take effect: | ||
| sudo reboot | sudo reboot | ||
| + | |||
| + | === Create Database === | ||
| + | |||
| + | sudo su postgres | ||
| + | psql | ||
| + | CREATE DATABASE <db>; | ||
| + | CREATE USER < | ||
| + | ALTER USER < | ||
| + | GRANT ALL PRIVILEGES ON DATABASE <db> TO < | ||
| + | ALTER DATABASE <db> OWNER TO < | ||
| + | |||
| + | |||
| + | === Deployment Checklist === | ||
| + | |||
| + | - Static Files | ||
| + | python manage.py collectstatic | ||
| + | |||
| === Nginx === | === Nginx === | ||
| Line 56: | Line 77: | ||
| - | ### Tutorial | + | === Gunicorn === |
| - | https://www.teachmemicro.com/building-a-django-webserver-on-raspberry-pi-a-step-by-step-guide/ | + | sudo nano /etc/systemd/system/gunicorn.service |
| + | sudo systemctl start gunicorn.service | ||
| + | === Tutorial === | ||
| + | |||
| + | https:// | ||
| + | https:// | ||
deployment_raspberry.1760561045.txt.gz · Last modified: by ninin
