내 범위는 cron 작업을 통해 클라우드에서 파이썬 스크립트 (웹 사이트의 텍스트를 스크랩하고 csv 파일로 저장)를 실행하는 것입니다. 이것을 위해 나는 Heroku를 선택했다.Heroku에서 Python Worker 실행 - 푸시 실패
작업자를 배치하려고 시도 할 때 푸시 거부가 발생하기 때문에 막혔습니다.
다음은 내가하는 일입니다. 내 scrapit.py와 Procfile ('worker : node scrapit.py')을 디렉토리에 넣습니다. 내가 Heroku가에서 응용 프로그램을 만든 후
그런 다음, 나는 위의 디렉토리에서 다음 명령을 보내
$ heroku login
$ git init
$ heroku git:remote -a app-name-on-heroku
$ git add .
$ git commit -am "nth time :("
$ git push heroku master
나는 다음과 같은 메시지가 얻을 :이 전송 오류 후
Counting objects: 41, done. Delta compression using up to 4 threads. Compressing objects: 100% (36/36), done. Writing objects: 100% (41/41), 12.97 KiB | 0 bytes/s, done. Total 41 (delta 6), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> App not compatible with buildpack: https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to app-name-on-heroku. remote: To https://git.heroku.com/app-name-on-heroku.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to ' https://git.heroku.com/app-name-on-heroku.git '
을 명령
heroku buildpacks:set heroku/python
여전히 푸시는 거부됩니다
필요합니까? requirements.txt가 필요합니까? – user3755529