forked from ungleich-public/dynamicweb
add gunicorn
This commit is contained in:
parent
aba68ee78c
commit
2330c3628f
2 changed files with 23 additions and 2 deletions
22
deploy.txt
22
deploy.txt
|
|
@ -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"""
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue