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/20 19:07] – ninin | deployment_raspberry [2025/10/20 19:50] (current) – ninin | ||
|---|---|---|---|
| Line 47: | 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 === | === Deployment Checklist === | ||
| - Static Files | - Static Files | ||
| - | - Database | + | python manage.py collectstatic |
| Line 68: | Line 79: | ||
| === Gunicorn === | === Gunicorn === | ||
| + | sudo nano / | ||
| + | sudo systemctl start gunicorn.service | ||
| === Tutorial === | === Tutorial === | ||
| https:// | https:// | ||
| + | https:// | ||
deployment_raspberry.1760987279.txt.gz · Last modified: by ninin
