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"""