ankit013 / Streamlit_Deploy

Streamlit app deployment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Streamlit_Deploy

Streamlit app deployment

Steps to follow

  1. Create a repository on github and clone in your PC

  2. Navigate to that folder in the terminal

  3. Make a file named app.py

  4. Make a file named Procfile and paste this

    web: sh setup.sh && streamlit run app.py

  5. Make a file named requirements.txt

  6. 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

  1. heroku login heroku create git add . git commit -m "Some message" git push heroku master

About

Streamlit app deployment


Languages

Language:Shell 58.1%Language:Python 41.9%