I am running a flask application with apache using mod_wsgi. I was having trouble reloading the application after making a change to the python code so I read through the mod_wsgi wiki on reloading source code. I ran the script to confirm that I am running in Daemon mode, and my .conf VirtualHost is setup as follows:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName dev.succor.co
DocumentRoot /var/www/study_buddy_dev/study_buddy
WSGIScriptAlias / /var/www/study_buddy_dev/study_buddy/app.wsgi
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel info
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/study_buddy_dev/study_buddy/>
AuthType Basic
AuthName "Authentication Required"
AuthUserFile "/etc/htpasswd/.htpasswd"
Require valid-user
WSGIScriptReloading On
Order deny,allow
Allow from all
</Directory>
WSGIDaemonProcess succor.dev processes=2 threads=15 display-name=%{GROUP}
WSGIProcessGroup succor.dev
</VirtualHost>
But when I run ~$ sudo touch app.wsgi
nothing changes in my application and I am completely at a loss as to why. Can anyone shed some light on what I am doing wrong here?
touch
, it happens when a request is received after. Have you tried sending a request after touching the script? – Miguel