简体   繁体   中英

Heroku Python Worker ProcFile

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

您需要以下内容:

worker: python project/worker/worker.py

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM