In the building of shrten.me, I eventually had to make a decision as to how I plan on hosting this web app.
Many platforms offer an easy mechanism for hosting a Flask app, such as Heroku and Google App Engine, but alas, those choices were not for me.
In the pursuit of understanding the intricacies of hosting, I decided to host the app on my VM using Apache, but all was not well.
It’s astounding the amount of different solutions presented online for this problem, and how few of them seem to work for me. Here I will describe my WSGI file and Apache config file for those who may be in the same position as me.
Instances of YOURAPP must be replaced with, obviously, your app!
The WSGI file, while simple, isn’t well described in most articles. This worked for me.
When that’s all said and done, enable your site, and reboot apache!
If you have any questions feel free to hit me an email with your problem!.
Cheers!