infra:services:hula
Differences
This shows you the differences between two versions of the page.
| infra:services:hula [2025/01/14 21:03] – created kfh | infra:services:hula [2025/01/14 21:09] (current) – kfh | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ### Updating the software | ### Updating the software | ||
| - | ``` bash | + | |
| - | # Go to the checkout as `hackerhula` via `root` | + | sudo su - |
| - | sudo su - | + | su - hackerietweb -s /bin/bash |
| - | su - hackerietweb -s /bin/bash | + | cd / |
| - | cd / | + | git pull |
| - | git pull | + | |
| + | # If you've made migrations, run this | ||
| + | poetry run ./manage.py migrate | ||
| + | |||
| + | # If you've changed static files, run this | ||
| + | poetry run ./manage.py collectstatic | ||
| + | |||
| + | # Back to root we go | ||
| + | ^D | ||
| + | |||
| + | # Restart the appserver | ||
| + | systemctl restart gunicorn-hula.service | ||
| + | # and bob's your uncle | ||
| - | # If you've made migrations, run this | ||
| - | poetry run ./manage.py migrate | ||
| - | # If you've changed static files, run this | ||
| - | poetry run ./manage.py collectstatic | ||
| - | |||
| - | # Back to root we go | ||
| - | ^D | ||
| - | |||
| - | # Restart the appserver | ||
| - | systemctl restart gunicorn-hula.service | ||
| - | # and bob's your uncle | ||
| - | ``` | ||
/srv/hackeriet-wiki/dokuwiki/data/attic/infra/services/hula.1736888608.txt.gz · Last modified: by kfh