I’m facing a singular problem in deployment of my app on Heroku, one which absolutely refuses to go away.
Here it is: (from the heroku app logs in the terminal). On the browser, the URL of the app throws an Application Error every single time.
I’ve consulted and followed every single thread of discussions from here on what could be wrong with my setup.sh, Procfile, and requirements.txt, but to no avail. I still get the same error always.
Have you tried to interact with the Heroku installation in the bash shell (online or using the Heroku desktop tools)? You can do a manual install and start your app in the console.
The detailed Heroku logs can shed more light than the basic deployment messages on what’s happening during installation.
Have you compared a pipreqs-generated requirements.txt file with your own? There may be some missing packages, and the deployment error message may actually be a red herring.
I’d also recommend you install the most basic “hello world” application first, if not already done.
Have you compared a pipreqs-generated requirements.txt file with your own? There may be some missing packages, and the deployment error message may actually be a red herring.
I’ve used the same requirements.txt to deploy my app and test it on the official Streamlit sharing. It works perfectly there.
Have you tried to interact with the Heroku installation in the bash shell (online or using the Heroku desktop tools)? You can do a manual install and start your app in the console.
The detailed Heroku logs can shed more light than the basic deployment messages on what’s happening during installation.
I don’t understand what you mean by manual installation. I did everything from the terminal itself. Created a new heroku app, added git remote for heroku, committed and pushed it to heroku master. What else do you mean?
I’d also recommend you install the most basic “hello world” application first, if not already done.
I could do this yeah. My application is almost a hello world application though. No extra ML libraries or anything like that. Just some basic Python functions in one app.py. In fact, I only have two files in the whole application to be deployed–requirements file and the app.py. That’s it.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.