add gunicorn

This commit is contained in:
bruks 2026-10-02 14:36:09 +01:00
commit 2330c3628f
2 changed files with 23 additions and 2 deletions

View file

@ -44,4 +44,24 @@ source ~/.bashrc
sudo apt install -y git
sudo apt-get install postgresql postgresql-contrib nginx
sudo apt-get install postgresql postgresql-contrib nginx
sudo apt update
sudo apt install -y libpq-dev
sudo chmod -R a+rwx venv
"""[Unit]
Description=gunicorn daemon
After=network.target
[Service]
User=ubuntu
Group=www-data
WorkingDirectory=/home/code/dynamicweb
ExecStart=/home/environment/venv/bin/gunicorn --access-logfile - --workers 1 --bind unix:/home/code/dynamicweb/app.sock settings.wsgi:application
[Install]
WantedBy=multi-user.target"""

View file

@ -24,7 +24,7 @@ django-appconf==1.2.0
django-appdata==0.4.0
django-bootstrap3==26.2
django-classy-tags==0.8.0
#django-cms==3.11.11
django-cms==3.11.11
django-debug-toolbar==8.0.0
django-filer==3.6.0
django-formtools==2.1
@ -60,6 +60,7 @@ djangocms-text-ckeditor==5.1.7
djangocms-video==3.1.0
djangorestframework==3.18.1
easy-thumbnails==2.10.1
gunicorn==26.2.0
html5lib==1.1
idna==3.20
kombu==5.6.2