![]() To add virtual host to Apache that forward dynamic content to Gunicorn: sudo vi /etc/httpd/conf.d/my_django_cms. #command=/home/rayed/.virtualenvs/dev/bin/gunicorn gi:application -b unix:/tmp/my_django_cms.sock -workers 8 -max-requests 1000Īfter that: sudo supervisorctl add my_django_cms # UNIX Socket version (better with Nginx) (NASDAQ:DXPE), today announced it will reschedule its first quarter 2023 earnings release and conference call previously scheduled for May 10, 2023. ![]() Here is a sample of Django App to be controlled and monitored by Supervisor, just put it: sudo vi /etc/supervisord.d/my_django_cms.confĬommand=/home/rayed/.virtualenvs/dev/bin/gunicorn gi:application -b 127.0.0.1:8080 -workers 8 -max-requests 1000 Then make sure CentOS knows about it: sudo chmod +x /etc/rc.d/init.d/supervisord Keep the visual indicators you are used to but gain the flexibility to meet the changing requirements of your shop in the future. This is used to give you a birds eye view of your workload and schedule. # number of processes on UNIX-like operating NO WHITEBOARDS, MAGNETS OR VELCRO REQUIRED QScheduler features an easy to learn and simple to use drag and drop interface. # allows its users to monitor and control a # Supervisor is a client/server system that ![]() Next we need to set “Supervisor” to run automatically every time you restart your machine, we need to create /etc/rc.d/init.d/supervisord with the following content: sudo vi /etc/rc.d/init.d/supervisord We’ve already installed “Supervisor” globally, but we need to create its configuration, luckily it comes with default config: echo_supervisord_conf > nf Install Needed Package sudo yum install python-setuptools CentOS default repository is very limited, and even if you install EPEL you will get old packages, in my case I needed to install Supervisor to manage my Django application, after trying to do it manually and through EPEL I ended up with the following setup.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |