Skip to content

Commit 66f9269

Browse files
authored
Merge pull request #65 from CodeForPhilly/fix_heroku
Fix heroku
2 parents a1c4cf2 + 72aebc9 commit 66f9269

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: streamlit run app.py
1+
web: sh setup.sh && streamlit run app.py && echo $PORT

setup.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
mkdir -p ~/.streamlit/
2+
3+
echo "\
4+
[general]\n\
5+
email = \"[email protected]\"\n\
6+
" > ~/.streamlit/credentials.toml
7+
8+
echo "\
9+
[server]\n\
10+
headless = true\n\
11+
enableCORS=false\n\
12+
port = $PORT\n\
13+
" > ~/.streamlit/config.toml

0 commit comments

Comments
 (0)