Could I mix this Python Flask tutorial to work with Vesta?
Posted: Fri Jan 19, 2018 4:37 pm
I've got my old PHP website up and running, and now I'd like to try get my (WIP) Flask one hosted. I found a tutorial on how to do it (https://www.digitalocean.com/community/ ... ubuntu-vps), but I'd like to ask a couple of questions before I go and mess up my nice clean installation, since I'll have to modify it a bit for Vesta and I barely know what I'm doing haha.
1. Am I going to break anything by enabling mod_wsgi? (step 1)
2. When it says go to /var/www, would the Vesta equivalent be /home/user/web/site.com/public_html? (step 2)
3. FlaskApp.conf looks similar to site.com.apache2.conf, would it potentially use both (.apache2 for Vesta and that one for Flask), or is it likely it'll only use one? (step 4)
I did have a google on using Python with Vesta but there didn't seem to be a whole bunch of information about it.
Edit: In regards to #3, my friend (who knows Linux but not Flask) suggested create a new website in Vesta, upload it, edit .apache2.conf with values from the tutorial's FlaskApp.conf, then enable ssl support to generate the .apache2-le-ssl.conf file. Does that sound ok?
1. Am I going to break anything by enabling mod_wsgi? (step 1)
2. When it says go to /var/www, would the Vesta equivalent be /home/user/web/site.com/public_html? (step 2)
3. FlaskApp.conf looks similar to site.com.apache2.conf, would it potentially use both (.apache2 for Vesta and that one for Flask), or is it likely it'll only use one? (step 4)
I did have a google on using Python with Vesta but there didn't seem to be a whole bunch of information about it.
Edit: In regards to #3, my friend (who knows Linux but not Flask) suggested create a new website in Vesta, upload it, edit .apache2.conf with values from the tutorial's FlaskApp.conf, then enable ssl support to generate the .apache2-le-ssl.conf file. Does that sound ok?