diff --git a/deploy.txt b/deploy.txt index 464c764c..c221a22f 100644 --- a/deploy.txt +++ b/deploy.txt @@ -44,4 +44,24 @@ source ~/.bashrc sudo apt install -y git -sudo apt-get install postgresql postgresql-contrib nginx \ No newline at end of file +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""" \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 3adce48e..6caf33a0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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