Streamlit app deployment
-
Create a repository on github and clone in your PC
-
Navigate to that folder in the terminal
-
Make a file named app.py
-
Make a file named Procfile and paste this
web: sh setup.sh && streamlit run app.py
-
Make a file named requirements.txt
-
Make a file named setup.sh and paste this
mkdir -p ~/.streamlit/
echo "
[server]\n
headless = true\n
port = $PORT\n
enableCORS = false\n
\n
" > ~/.streamlit/config.toml
- heroku login heroku create git add . git commit -m "Some message" git push heroku master