项目
在 GitHub 查看
Jcharis/Streamlit_DataScience_Apps
关于
使用 Python 编写的 Streamlit 数据科学与机器学习应用
数据与分析实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Streamlit_DataScience_Apps
Streamlit Data Science and ML Apps in Python
How to Deploy Streamlit Apps to Heroku
1. Create An Account Heroku by signing up.
2. Install Heroku CLI
3. Create Your Github Repository for your app
4. Build your app
5. Login to Heroku From the CLI
heroku Login
6. Create Your 3 Required Files(setup.sh,Procfile,requirements.txt)
- Place the code below in their respective files
Code for setup.sh
mkdir -p ~/.streamlit/
echo "\
[general]\n\
email = \"[email protected]\"\n\
" > ~/.streamlit/credentials.toml
echo "\
[server]\n\
headless = true\n\
enableCORS=false\n\
port = $PORT\n\
" > ~/.streamlit/config.toml
Code for setup.sh (Alternate with no credentials.toml)
mkdir -p ~/.streamlit/
echo "\
[server]\n\
headless = true\n\
port = $PORT\n\
enableCORS = false\n\
\n\
" > ~/.streamlit/config.toml
Code For Procfile
web: sh setup.sh && streamlit run your_app.py
7. Create App with CLI
heroku create name-of-your-app
8. Commit and Push Your Code to Github
git add your app
git commit -m "your comment description"
git push
9. Push To Heroku to Deploy
git push heroku master
Credits:
Thanks For Your Time
####By
- Jesse E.Agbe(JCharis)
- Jesus Saves@JCharisTech
探索相关项目
加载中…