Hi, all
still have some confuse about developer mode and production mode. I installed Erpnext on my vm, using sudo bash setup_frappe.sh without --setup-production, after install steps, I have to run ‘bench start’ to run the server.
Then still on this vm I’d like to change it to production mode, so I did ‘bench setup supervisor/ngnix’ and ‘bench setup production erpnext’, then I don’t need do ‘bench start’ any more.
Now I have three questions:
- if I stop supervisorctl and bench start on this vm, does it mean it’s back to developer mode again?
Once stop supervisor and start bench, it will go to developer mode, otherwise, reload supervisor and stop bench, it will go to production mode, is this understanding right? - when I reloaded supervisor and stopped bench, I found the updated python code on the server will not compile to new pyc unless I execute ‘supervisorctl reload’, dose it mean it’s better to modify python code on server when bench start (developer mode)?
- when I use production mode, I found system is getting slower, seems gunicorn occupied 100% cpu, but when stop supervisor and bench start, system get right.
Any replies will be appreciated.