Skip to content

Commit

Permalink
deploying app to Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
milestommo committed Dec 11, 2020
1 parent 9903d66 commit 5920966
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ star-project-key.json
eggs/
.eggs/
*.egg
__pycache__/
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,11 @@ pypi_test:
@twine upload -r testpypi dist/* -u lologibus2

pypi:
@twine upload dist/* -u lologibus2
@twine upload dist/* -u lologibus2

# ----------------------------------
# RUN STREAMLIT
# ----------------------------------

run_streamlit:
streamlit run fivestar/five_star.py
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: sh setup.sh && streamlit run fivestar/five_star.py
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ memoized_property
psutil
termcolor
wordcloud
streamlit==0.71.0
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
include_package_data=True,
scripts=['scripts/fivestar-run'],
zip_safe=False)

15 changes: 15 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
mkdir -p ~/.streamlit/

echo "\
[general]\n\
email = \"${milestommo87@gmail.com}\"\n\
" > ~/.streamlit/credentials.toml

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


0 comments on commit 5920966

Please sign in to comment.