hey, is there easy way to avoid constant 'sudo service apache2 restart'  
for every code change in my project?  its really redundant.  Im using 
embedded mode to be able to dev multiple sites if needed.  I tried 
nginx/gunicorn config but found apache to be way smoother for some reason 
(was getting lots of 503 bad gateways on nginx and slower loads).  I had a 
read of this, 
https://code.google.com/archive/p/modwsgi/wikis/ReloadingSourceCode.wiki,  
it appears there is no appropriate solution.  even in daemon mode you have 
to run a command to touch the wsgi script file, which is almost the same as 
running sudo command.  it gets quite tiresome.  one stack article suggests 
same issue remains with gunicorn/nginx config.  since im the only one user 
on the site, I could use max requests = 1 as a temporary solution for dev, 
correct.  Following docs here I did not see this line in apache config file 
at /etc/apache2/apache2.conf.  


MaxRequestsPerChild 1


So Is this correct? :


<VirtualHost *:80>
                ServerName djang0.me
                WSGIDaemonProcess djang0 python-home=/var/www/djang0/
venv python-path=/var/www/djang0/djang0 *maximum-requests=1*
                WSGIProcessGroup djang0
                WSGIApplicationGroup %{GLOBAL}
                WSGIScriptAlias / /var/www/djang0/djang0/djang0/wsgi.py
etc etc....

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to