Skip to content

dori-dev/django-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Shop

Full modern shop created with Django.

Celery Beat

celery -A config beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler

Install Supervisor

sudo apt install supervisor
sudo pacman -S supervisor

all supervisor processes goes here in: /etc/supervisor.d/

Initialize

touch /etc/supervisor.d/shop.init
nano /etc/supervisor.d/shop.init

write this in shop.init

[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:

touch /var/log/shop/celery.log
touch /var/log/shop/celery.err.log

Usage

supervisorctl reread
supervisorctl update

supervisorctl {status|start|stop|restart} shop

About

Full modern shop created with Django.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published