0

Trying to push to the heroku server, I get this:

git push heroku master

remote: Building source:
remote:
remote: -----> Python app detected
remote:  !     Python has released a security update! Please consider upgrading to python-3.7.3
remote:        Learn More: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> Installing requirements with pip
remote:
remote: -----> Downloading NLTK corpora…
remote:  !     'nltk.txt' not found, not downloading any corpora
remote:  !     Learn more: https://devcenter.heroku.com/articles/python-nltk
remote: -----> Discovering process types
remote:        Procfile declares types -> web
remote:
remote: -----> Compressing...
remote:        Done: 206.4M
remote: -----> Launching...
remote:        Released v10
remote:        https://versally.herokuapp.com/ deployed to Heroku

However, when I go to my app, it tells me there's an error. When I check in on the logs, I see this:

2019-04-30T13:22:00.633794+00:00 app[web.1]: import django_heroku
2019-04-30T13:22:00.633801+00:00 app[web.1]: ModuleNotFoundError: No module named 'django_heroku'
2019-04-30T13:22:00.634020+00:00 app[web.1]: [2019-04-30 13:22:00 +0000] [11] [INFO] Worker exiting (pid: 11)
2019-04-30T13:22:00.789044+00:00 app[web.1]: [2019-04-30 13:22:00 +0000] [4] [INFO] Shutting down: Master

I'm yet to setup the database, but I'm just looking to get a debug message from the django code so I can start with configuration of the database.

phil0s0pher
  • 525
  • 10
  • 21

1 Answers1

1

For anyone out there with this problem, I solved it by emptying my requirements.txt, pushing (which forces Heroku to uninstall all the requirements) then pushing populated requirements through aggain.

I had to make sure gunicorn was included in requirements - which it was, but a log showed that for some reason heroku uninstalled my 'stale' version.

Heroku + gunicorn not working (bash: gunicorn: command not found )

phil0s0pher
  • 525
  • 10
  • 21