0
我試圖移植一個應用程序在Heroku上運行,但遇到了一個障礙。這是一個Python3/Django應用程序,並且Web應用程序(使用gunicorn)正常運行。當我添加一個工人到我Procfile,它崩潰與消息:Heroku:找不到芹菜
2016-01-13T16:40:07.985725+00:00 heroku[worker.1]: Starting process with command `celery -A app worker`
2016-01-13T16:40:08.664327+00:00 heroku[worker.1]: State changed from starting to up
2016-01-13T16:40:09.900924+00:00 app[worker.1]: bash: celery: command not found
2016-01-13T16:40:11.184762+00:00 heroku[worker.1]: Process exited with status 127
2016-01-13T16:40:11.196987+00:00 heroku[worker.1]: State changed from up to crashed
要求文件包括芹菜:
celery==3.1.18
如果不安裝的要求,主要的應用程序將無法啓動。
Procfile:https://devcenter.heroku.com/articles/celery-heroku#running-locally