Skip to content

sidataplus/streamlit-heroku-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

streamlit-heroku-template

a simple template for deploying a Streamlit app on Heroku

Requirements

How-to

Install packages

poetry install

Edit Source Code

See app.py in directory src following Streamlit Documentation

Run app

poetry run streamlit run src/app.py --server.runOnSave true

Format code

poetry run yapf src/* -i -p

Deploy to Heroku

Export requirements

poetry export -f requirements.txt --without-hashes --output requirements.txt

Go through Heroku: Deploying with Git or Heroku: GitHub Integration