Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

running ./manage.py via supervisor

/manage.py command using supervisor, is it possible? am I doing something wrong? The log file says that can't find command './manage.py'

[program:test3]
command=./manage.py test
directory=/var/www/my_venv
stdout_logfile=/var/log/test3.log
stderr_logfile=/var/log/test3.log
autostart=true
autorestart=true
startsecs=10
stopwaitsecs=600
like image 320
Jonathan Avatar asked Nov 22 '25 10:11

Jonathan


1 Answers

If anyone else has this problem, supervisor does not work with ./manage.py for me but it works just fine with python manage.py

I changed ./manage.py to python manage.py and everything works.

PS: I did do chmod +x manage.py before trying ./manage.py for people who might think that maybe I didn't have the permissions in place.

like image 151
Jonathan Avatar answered Nov 25 '25 00:11

Jonathan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!