Flask app on Github pages

Josh Leeb-du Toit picture Josh Leeb-du Toit · May 22, 2014 · Viewed 14.4k times · Source

Recently I have been trying to create a personal website using a Flask app with Github pages. Once creating a repository titled .github.io and placing an a file titled index.html it will appear live at the address .github.io. However, once this file is deleted and replaced with a basic Flask application then a 404 page appears.

Could I please get some help on what is required to get a Flask app running on Github pages.

Thanks in advance :)

Answer

Doobeh picture Doobeh · May 22, 2014

You can't host a python application on Github pages, it's designed for simple static file hosting. You could use something like Flask-Frozen to turn your Flask application into static pages, but then you obviously have some big tradeoffs depending on your site's functionality.