Now using procfile from

https://github.com/MaartenGr/streamlit_guide
This commit is contained in:
Eric Ma 2019-12-14 19:33:49 -05:00
parent 2fc200ad39
commit b0f462a4ab
2 changed files with 14 additions and 1 deletions

View File

@ -1 +1 @@
web: streamlit run beta_distribution.py
web: sh setup.sh && streamlit run beta_distribution.py

13
setup.sh Normal file
View File

@ -0,0 +1,13 @@
# Modified from
# https://github.com/MaartenGr/streamlit_guide/blob/master/Procfile
# and
# https://github.com/MaartenGr/streamlit_guide/blob/master/setup.sh
mkdir -p ~/.streamlit/
echo "\
[server]\n\
headless = true\n\
enableCORS=false\n\
port = $PORT\n\
" > ~/.streamlit/config.toml