You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1013 B
29 lines
1013 B
|
|
**Online software storefront**
|
|
---
|
|
**Python version: 3.5.2**
|
|
|
|
**Django 2.0**
|
|
|
|
---
|
|
|
|
### 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. 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
|
|
|
|
###Development
|
|
|
|
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
|
|
|
|
###Deployment
|
|
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)
|
|
|