Skip to content

About

Tutorial: deploy a Flask app on Light Cloud without a Dockerfile

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

tutorial-flask-app

Deploy to Light Cloud

A small Flask app ("Split the bill") used in the Light Cloud tutorial A Flask app in production, without writing a Dockerfile.

flowchart LR
  push[git push] --> build[Light Cloud build]
  build -->|.python-version, requirements.txt| image[Python image with Flask and gunicorn]
  image -->|gunicorn app:app on PORT| app[Flask app]
  app --> page[HTML form with Jinja and static CSS]
  app --> api[JSON at /api/split]
Loading

Run it

python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
flask --app app run --port 8000

CURRENCY sets the currency code shown after amounts (default USD).

About

Tutorial: deploy a Flask app on Light Cloud without a Dockerfile

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages