From c2fe1fc0a6c6c515da16a1bbbf7667c08b9fb7e9 Mon Sep 17 00:00:00 2001 From: Max Yakovenko Date: Sun, 19 Aug 2018 18:01:08 +0300 Subject: [PATCH] update README fiel --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c4759d8..499b745 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ ### Server configuration 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. Use systemd file with name celery-eshop.service to initialize celery following with these [instructions](http://docs.celeryproject.org/en/latest/userguide/daemonizing.html#usage-systemd "Celery | Daemonization") 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 @@ -18,12 +18,15 @@ 1. Make .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: - celery -A eshop_project worker -l info --pool=eventlet +3. Start celery queue for tasks with the command: + `celery -A eshop_project worker -l info --pool=eventlet` ###Deployment +1. Make pull request from bitbucket repo by ssh using passphrase 1. Make .env file with the structure described in .env.sample file 2. Make migrations for modules 3. Collect static 4. Restart gunicorn-eshop and celery-eshop daemons in systemd 5. Load fixture core fixture sites to configure site domain (before the FIRST http request) + +