Host Frozen-Flask on GitHub Pages
-
Frozen-Flask https://pythonhosted.org/Frozen-Flask/
-
GitHub Pages https://pages.github.com/
-
Use this templatae to create a new repository with all branches. It can either be Public/Private.
-
Go to
Settings > Pages
and configure GitHub Pages to deploy fromdocs/
directory. -
Create a virtual environment and install dependencies.
python3 -m venv .venv source .venv/bin/activate pip3 install -r requirements.txt
-
Change the
FREEZER_BASE_URL
to the new Repository name.app = Flask(__name__) # Enter your GitHub Pages URL here instead of frozen-flask-gh-pages app.config['FREEZER_BASE_URL'] = 'https://docs/frozen-flask-gh-pages/'
-
Run the server
python3 app.py
-
The static website files are stored in
docs/
directory ongh-pages
branch, which will be hosted on GitHub Pages.
MIT License