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.
|
|
7 years ago | |
|---|---|---|
| accounts_ext | 7 years ago | |
| blog_ext | 7 years ago | |
| cabinet | 7 years ago | |
| cart | 8 years ago | |
| contact_us | 8 years ago | |
| core | 7 years ago | |
| eshop_project | 7 years ago | |
| flatpages_ext | 8 years ago | |
| index | 7 years ago | |
| products | 7 years ago | |
| referral | 7 years ago | |
| static | 8 years ago | |
| templates | 7 years ago | |
| .env.sample | 7 years ago | |
| .gitignore | 8 years ago | |
| README.md | 8 years ago | |
| eshop_old.tar.gz | 8 years ago | |
| gulpfile.js | 8 years ago | |
| manage.py | 8 years ago | |
| package.json | 8 years ago | |
| requirements.txt | 8 years ago | |
| setup.cfg | 8 years ago | |
README.md
Online software storefront
Python version: 3.5.2
Django 2.0
Server configuration
- Use systemd file with name gunicorn-eshop.service to initialize gunicorn server with DJANGO_SETTINGS_MODULE environment var
- Use systemd file with name celery-eshop.service to initialize celery following with these instructions
- Install virtualenv inside the project directory in run server
- Install dependencies from inside the activated virtualenv
- Create empty logs dir in project directory
- Install nodejs with npm(nvm preferably)
- install all packages
###Development
- Activate eshop environment using virtualenvwrapper(workon)
- Make .env file with the structure described in .env.sample file
- Make migrations for modules: auth, accounts_ext, etc.
- Start celery queue for tasks with the command:
celery -A eshop_project worker -l info --pool=eventlet - Make alias for gulp with alias command and path gulp executable file
- Run
gulp default
###Deployment
- Activate eshop environment using virtualenvwrapper(workon)
- Make pull request from bitbucket repo by ssh using passphrase
- Make .env file with the structure described in .env.sample file
- Make migrations for modules
- Collect static
- Restart gunicorn-eshop and celery-eshop daemons in systemd
- Load fixture core fixture sites to configure site domain (before the FIRST http request)