https://github.com/dori-dev/django-shop
Full modern shop created with Django.
https://github.com/dori-dev/django-shop
Last synced: over 1 year ago
JSON representation
Full modern shop created with Django.
- Host: GitHub
- URL: https://github.com/dori-dev/django-shop
- Owner: dori-dev
- Created: 2023-04-03T18:56:40.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-04T10:54:45.000Z (over 2 years ago)
- Last Synced: 2025-01-05T05:42:06.325Z (over 1 year ago)
- Language: Python
- Size: 149 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django Shop
Full modern shop created with Django.
## Celery Beat
```bash
celery -A config beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler
```
## Install Supervisor
```bash
sudo apt install supervisor
sudo pacman -S supervisor
```
all supervisor processes goes here in: `/etc/supervisor.d/`
## Initialize
```bash
touch /etc/supervisor.d/shop.init
nano /etc/supervisor.d/shop.init
```
write this in `shop.init`
```txt
[program:shop]
user=user
directory=/var/www/shop/src/
command=/var/www/shop/env/bin/celery -A config worker -l info
numprocs=1
autostart=true
autorestart=true
stdout_logfile=/var/log/shop/celery.log
stderr_logfile=/var/log/shop/celery.err.log
```
create log files:
```bash
touch /var/log/shop/celery.log
touch /var/log/shop/celery.err.log
```
## Usage
```bash
supervisorctl reread
supervisorctl update
supervisorctl {status|start|stop|restart} shop
```