0

I am trying to deploy my Django app on Heroku and I am getting this error -

error

Based on the answers to this question, here is what I have tried so far -

  1. Adding the requirements.txt file in the root directory of the project.
  2. Adding Procfile in the root directory of my project.
  3. Made sure git is initialized in the root directory of my project.

This is what my project structure looks like -

Project Structure

This is what my Procfile looks like -

web: gunicorn GameStudio.wsgi --log-file -

Any suggestions/pointers will be highly appreciated. Thank you for your time!

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
  • as far as I can remember, Heroku stops SQLite deployments. [ref](https://devcenter.heroku.com/articles/sqlite3) – shivankgtm Jan 31 '22 at 18:58
  • Tried deleting db.sqlite3 file and pushing again, got same error – Prachi Jain Jan 31 '22 at 19:05
  • "App not compatible with buildpack" has nothing to do with your `Procfile`, or with use of SQLite (though shivankgtm and Prachi Jain are correct that it doesn't work properly on Heroku). It's purely about `requirements.txt` (or `Pipfile` and `Pipfile.lock` if you're using Pipenv). Is the `requirements.txt` file committed? – ChrisGPT was on strike Jan 31 '22 at 19:18
  • [Please don't post screenshots of text](https://meta.stackoverflow.com/a/285557/354577). They can't be searched or copied, or even consumed by users of adaptive technologies like screen readers. Instead, paste the code as text directly into your question. If you select it and click the `{}` button or Ctrl+K the code block will be indented by four spaces, which will cause it to be rendered as code. – ChrisGPT was on strike Jan 31 '22 at 19:20
  • Noted. Yes, requiements.txt is committed. – Prachi Jain Feb 01 '22 at 09:04
  • Well Heroku doesn't seem to think so. Are you absolutely sure? What does `git ls-files requirements.txt` output? Is it committed to your `master` branch, or another branch? Are you able to share a link to the repository? – ChrisGPT was on strike Feb 01 '22 at 12:41
  • Sure @Chris ! Here is the repo [link](https://github.com/Prachi-Jain01/GameStudio). The code is on master branch. `git ls-files requirements.txt` doesn't return anything. – Prachi Jain Feb 03 '22 at 18:53
  • "`git ls-files requirements.txt` doesn't return anything"—then you _don't_ have a committed file called `requirements.txt`. Looking at your repository, I see `Requirements.txt` but that's different from `requirements.txt`. I'll point you to another question that answers how to fix this. – ChrisGPT was on strike Feb 03 '22 at 19:26
  • Thanks a lot @Chris !! Now the git ls-files requirements.txt command returns "requirements.txt" and I have moved to further steps. Thanks a lot for your time! – Prachi Jain Feb 04 '22 at 17:39
  • Glad to help, @PrachiJain. Take care. – ChrisGPT was on strike Feb 04 '22 at 17:48

0 Answers0