Skip to content

Commit

Permalink
adding heroku setup file
Browse files Browse the repository at this point in the history
  • Loading branch information
rishuatgithub committed Aug 1, 2021
1 parent 56a72f4 commit cd3ecc4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: streamlit run app.py
web: sh script/setup.sh && streamlit run app.py
9 changes: 9 additions & 0 deletions script/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
mkdir -p ~/.streamlit/

echo "\
[server]\n\
headless = true\n\
port = $PORT\n\
enableCORS = false\n\
\n\
" > ~/.streamlit/config.toml

0 comments on commit cd3ecc4

Please sign in to comment.