3

I have a worker that I would like to run in heroku that is in the following directory:

project
-------worker
-------------worker.py
procfile

my procfile is in the root directory no problem and it runs my flask app correctly, but I've tried a few various combinations for the worker but can't seem to get it working (both project and worker folders have __init__.py). I've tried the following:

worker: python project.worker.worker
worker: python project.worker.worker.py
deadvoid
  • 1,270
  • 10
  • 19
Simon Nicholls
  • 635
  • 1
  • 9
  • 31

1 Answers1

4

You need the following:

worker: python project/worker/worker.py
Damien MATHIEU
  • 31,924
  • 13
  • 86
  • 94