Can't get the Flask (python3) site up on the VESTA Apache server
Posted: Mon Jun 03, 2019 2:36 am
I've been at it for the last three days and don't seem to be getting anywhere.
I was able to run the Flask app on a locally installed Apache server. It consists of 3 files: appname.py, appname.wsgi & appname.conf. On the local Apache server the ".py" and ".wsgi" are in /var/www directory and the ".conf" in /etc/apache2/sites-available. All I had to do for the flask site to run were the following three commands:
Btw, its all python3, on the local as well on the VESTA server, and the corresponding mod_wsgi is also installed and enabled. I followed https://vestacp.com/docs/#how-to-enable ... ian-ubuntu as discribed, and also again with the following modifications viewtopic.php?t=10867 for the wsgi templates.
So what I'm basically asking is how do I mirror the above steps? Which directories do /var/www and /etc/apache2/sites-available correspond to? Does the # a2ensite appname.conf command has any effect in VESTA, is it overridden by VESTA somehow? Any helpful feedback is really appreciated.
I was able to run the Flask app on a locally installed Apache server. It consists of 3 files: appname.py, appname.wsgi & appname.conf. On the local Apache server the ".py" and ".wsgi" are in /var/www directory and the ".conf" in /etc/apache2/sites-available. All I had to do for the flask site to run were the following three commands:
Code: Select all
# a2dissite 000-default.conf
# a2ensite appname.conf
# service apache2 reload
So what I'm basically asking is how do I mirror the above steps? Which directories do /var/www and /etc/apache2/sites-available correspond to? Does the # a2ensite appname.conf command has any effect in VESTA, is it overridden by VESTA somehow? Any helpful feedback is really appreciated.