From d74341a5d8d12f19f15dd3eefa131df91392c46e Mon Sep 17 00:00:00 2001 From: Max Yakovenko Date: Thu, 19 Jul 2018 09:11:03 +0300 Subject: [PATCH] add instruction for deploy to readme --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f2ab362..aaf6294 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,8 @@ --- ### Server configuration -1. Use systemd file with name gunicorn.eshop.service to initialize gunicorn server +1. Use systemd file with name gunicorn-eshop.service to initialize gunicorn server with DJANGO_SETTINGS_MODULE environment var +2. Use systemd file with name celery-eshop.service to initialize celery 2. Install virtualenv inside the project directory in run server 3. Install dependencies from inside the activated virtualenv 4. Create empty logs dir in project directory @@ -17,4 +18,5 @@ 1. Use .env file with the structure described in .env.sample file 2. Make migrations for modules: auth, accounts_ext, etc. -2. Start celery queue for email with command +2. Start celery queue for email with command: + celery -A eshop_project worker -l info --pool=eventlet