From b0f462a4abc55ab74d210fb3b6e3de0d87521a5f Mon Sep 17 00:00:00 2001 From: Eric Ma Date: Sat, 14 Dec 2019 19:33:49 -0500 Subject: [PATCH] Now using procfile from https://github.com/MaartenGr/streamlit_guide --- Procfile | 2 +- setup.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 setup.sh 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