Pull the repo
sudo -u pdns git fetch --all && \
sudo -u pdns git tag -l
Checkout the desired tag/version
sudo -u pdns git checkout v0.4.0
Activate the Python environment and install required libraries
source ./venv/bin/activate && \
pip install --upgrade pip && \
pip install -r requirements.txt
Set the ENV
variables FLASK_CONF
and FLASK_APP
then run the DB migration
export FLASK_CONF=/opt/web/powerdns-admin/configs/production.py && \
export FLASK_APP=/opt/web/powerdns-admin/powerdnsadmin/__init__.py && \
flask db upgrade
Generate asset files with Yarn
yarn install --pure-lockfile && \
flask assets build
Change the ownership of the PDNS-Admin files
chown -R pdns:pdns /opt/web/powerdns-admin
Restart PowerDNS-Admin and NGNIX
systemctl restart powerdns-admin.service nginx.service