Skip to content

AshrithSagar/frozen-flask-gh-pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

frozen-flask-gh-pages

Host Frozen-Flask on GitHub Pages

How to use

  1. Use this templatae to create a new repository with all branches. It can either be Public/Private.

    Fork repo

  2. Go to Settings > Pages and configure GitHub Pages to deploy from docs/ directory.

    GitHub Pages Settings config

  3. Create a virtual environment and install dependencies.

    python3 -m venv .venv
    source .venv/bin/activate
    pip3 install -r requirements.txt
  4. 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/'
  5. Run the server

    python3 app.py
  6. The static website files are stored in docs/ directory on gh-pages branch, which will be hosted on GitHub Pages.

License

MIT License

Releases

No releases published

Packages

No packages published