Deployment error when trying to deploy to heroku

Error Message:

2021-07-25T20:04:30.101200+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=text-2-handwriting.herokuapp.com request_id=d243c193-fd3b-4b19-8a4d-1ed10fd7b00c fwd="103.160.194.61" dyno= connect= service= status=503 bytes= protocol=https

Procfile
web: sh setup.sh && streamlit run app.py

setup.sh
`mkdir -p ~/.streamlit/

echo "[theme]
primaryColor = ‘#84a3a7
backgroundColor = ‘#EFEDE8
secondaryBackgroundColor = ‘#fafafa
textColor= ‘#424242
font = ‘sans serif’
[server]
headless = true
port = $PORT
enableCORS = false
" > ~/.streamlit/config.toml`

requirements
streamlit==0.84.1 pandas==1.3.1 numpy==1.20.0 seaborn==0.11.1 matplotlib==3.4.2 pandasql==0.7.3 plotly==5.1.0 pillow==8.3.1 requests==2.26.0

Whatever I try its always showing ‘Application Error’

Check REPO : Repo

Hi @Aditya_Shenoy

I can’t see your runtime.txt file in your repo. Can you try adding one and see if it gets rid of the issue?

Thanks
Charly

Heyy @Charly_Wargnier

I tried once again after adding runtime.txt, but it still showing the same!!!

runtime.txt

python-3.9.5

Hi @Aditya_Shenoy :wave:

This issue has cropped up multiple times on the forum. I would suggest reading up on the following thread: Unable to host streamlit app using heroku due to error: cannot create /app/.streamlit/config.toml

In particular, try implementing the solution from these two steps and feel free get back to us if you’re still facing the issue :slight_smile:

Happy Streamlit’ing! :balloon:
Snehan

3 Likes

Heyy @snehankekre !!

I changed the [theme] from the config.toml and apparently its working now!! :sweat_smile: