diff --git a/Procfile b/Procfile index c563e4a..ec4a45e 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: streamlit run beta_distribution.py +web: sh setup.sh && streamlit run beta_distribution.py diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..3eac384 --- /dev/null +++ b/setup.sh @@ -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