os:linux:powerdns-admin_update
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
os:linux:powerdns-admin_update [2021-01-08 15:44] – created Manuel Frei | os:linux:powerdns-admin_update [2024-02-05 20:49] (current) – Manuel Frei | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PowerDNS-Admin Update ====== | ====== PowerDNS-Admin Update ====== | ||
+ | |||
+ | Stop service. | ||
+ | < | ||
+ | systemctl stop uwsgi@powerdns-admin.service | ||
+ | </ | ||
Change to the PowerDNS-Admin parent directory. | Change to the PowerDNS-Admin parent directory. | ||
Line 28: | Line 33: | ||
Get the latest update. | Get the latest update. | ||
< | < | ||
- | git pull --rebase | + | sudo -u www-data |
</ | </ | ||
Line 39: | Line 44: | ||
< | < | ||
pip install -Ur requirements.txt | pip install -Ur requirements.txt | ||
+ | </ | ||
+ | |||
+ | Rebuild JavaScript components. | ||
+ | < | ||
+ | yarn install --pure-lockfile | ||
</ | </ | ||
Update Flask components and database. | Update Flask components and database. | ||
< | < | ||
- | export FLASK_CONF=/ | + | export FLASK_CONF=/ |
export FLASK_APP=powerdnsadmin/ | export FLASK_APP=powerdnsadmin/ | ||
flask assets build | flask assets build | ||
flask db upgrade | flask db upgrade | ||
- | </ | ||
- | |||
- | Rebuild JavaScript components. | ||
- | < | ||
- | yarn install --pure-lockfile | ||
</ | </ | ||
Correct permissions. | Correct permissions. | ||
< | < | ||
- | chown -R httpd:httpd / | + | chown -R www-data:www-data |
</ | </ | ||
- | Restart | + | Start service. |
< | < | ||
- | systemctl | + | systemctl |
</ | </ | ||
+ | |||
+ | <WRAP left round important 60%> | ||
+ | In case the website isn't working, try to clear the cache/ | ||
+ | </ | ||
+ |
os/linux/powerdns-admin_update.1610117045.txt.gz · Last modified: 2021-01-08 15:44 by Manuel Frei