From 90eb50048a0d96424d7b4032a2d59e54d0137597 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Tue, 23 Nov 2021 06:07:36 +0000 Subject: [PATCH] fixin Dockerfile --- Dockerfile | 2 +- instance/cfg.py | 7 ++++++- uwsgi.ini | 10 +++++----- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2320b07..aa91a75 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ RUN apt-get update && apt-get install -y build-essential COPY requirements.txt . RUN python3 -m venv /opt/venv && \ . /opt/venv/bin/activate && \ - pip3 install uwsgi && \ + pip3 install uwsgi gevent && \ pip3 install -r requirements.txt FROM python:3.8-slim-buster diff --git a/instance/cfg.py b/instance/cfg.py index 5c2b9e5..3a961b8 100644 --- a/instance/cfg.py +++ b/instance/cfg.py @@ -11,4 +11,9 @@ DEBUG = True FLATPAGES_ROOT = os.path.abspath(pages_root) DEFAULT_TEMPLATE = 'page.html' PAGES_ROOT='data' -STATIC_ROOT='static' \ No newline at end of file +STATIC_ROOT='static' +FLATPAGES_EXTENSION_CONFIGS = { + 'codehilite': { + 'linenums': 'True' + } +} \ No newline at end of file diff --git a/uwsgi.ini b/uwsgi.ini index ddd61d3..cab3bde 100644 --- a/uwsgi.ini +++ b/uwsgi.ini @@ -6,14 +6,14 @@ master = true # No. of processes can be increased processes = 7 chown-socket =www-data:www-data -virtualenv = /srv/simple_sample_flat_index/.env -pythonpath = /srv/simple_sample_flat_index/ +virtualenv = /opt/venv/ +pythonpath = /opt/venv/ #pidfile = /srv/simple_sample_flat_index/uwsgi.pid #socket = /srv/simple_sample_flat_index/uwsgi.sock -pidfile=/var/run/simple_sample.pid -socket = /var/run/simple_sample.sock +pidfile=/var/run/doc2020.pid +socket = /var/run/dock2020.sock chmod-socket = 666 -module = simple_sample +module = app callable= app wsgi-file = app.py logdate = true