我用Chatterbot库创建了我的第一个聊天机器人。现在我想通过Heroku部署它,但这是不可能的。
我的聊天机器人由一些文件(py,csv,yml,json,txt)组成。 这是结构:
botusers(csv文件)
Magghy(py文件)
magghybot(py文件)
Procfile
要求(txt文件)
telegramtoken(txt file)
conversation.yml(在名为lang的文件夹中)
math_words.json(在名为lang的文件夹中)
我创建了一个“Procfile”(worker:python magghybot.py)和“Requirements.txt”
然后,我创建了我的Heroku配置文件,我尝试部署我的项目,但在终端上我有这个问题:
Counting objects: 13, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (13/13), 5.22 KiB | 0 bytes/s, done.
Total 13 (delta 0), 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 magghy.
remote:
To https://git.heroku.com/magghy.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/magghy.git'
我错过了什么?