diff --git a/Procfile b/Procfile index 94c24fb1..0d17c922 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: streamlit run app.py +web: sh setup.sh && streamlit run app.py && echo $PORT diff --git a/setup.sh b/setup.sh new file mode 100644 index 00000000..7bfbbab5 --- /dev/null +++ b/setup.sh @@ -0,0 +1,13 @@ +mkdir -p ~/.streamlit/ + +echo "\ +[general]\n\ +email = \"pennsignals@uphs.upenn.edu\"\n\ +" > ~/.streamlit/credentials.toml + +echo "\ +[server]\n\ +headless = true\n\ +enableCORS=false\n\ +port = $PORT\n\ +" > ~/.streamlit/config.toml