diff --git a/INSTALL.md b/INSTALL.md index f1095a55..1f654bf0 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -214,6 +214,13 @@ Once you have ngrok working, edit the `.env` file and change the `SERVER_NAME` v ## Running PieFed in production +Running PieFed in production relies on several additional packages that need to be installed. + +```bash +source venv/bin/activate #if not already in virtual environment +pip3 install gunicorn celery +``` + Copy `celery_worker.default.py` to `celery_worker.py`. Edit `DATABASE_URL` and `SERVER_NAME` to have the same values as in `.env`. Edit `gunicorn.conf.py` and change `worker_tmp_dir` if needed. diff --git a/app/templates/auth/login.html b/app/templates/auth/login.html index b37e5712..cb6c2a91 100644 --- a/app/templates/auth/login.html +++ b/app/templates/auth/login.html @@ -1,4 +1,8 @@ -{% extends 'base.html' %} +{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %} + {% extends 'themes/' + theme() + '/base.html' %} +{% else %} + {% extends "base.html" %} +{% endif %} %} {% from 'bootstrap/form.html' import render_form %} {% block app_content %} diff --git a/app/templates/base.html b/app/templates/base.html index df9183fe..37a58779 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -270,7 +270,7 @@ {% endif %} {% if theme() and file_exists('app/templates/themes/' + theme() + '/scripts.js') %} - {% endif %} {% block end_scripts %}