I'm trying to deploy a python script, but I get this error
Failed to detect app matching https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz buildpack
What files I have right now:
automation.py
A simple python script which imports praw, time, os and inspect.
requirements.txt
As described in the Heroku documents, I have created this file by running pip freeze > requirements.txt, containing:
astroid==1.5.2
colorama==0.3.8
isort==4.2.5
lazy-object-proxy==1.2.2
mccabe==0.6.1
praw==4.4.1.dev0
prawcore==0.10.1
pylint==1.7.1
requests==2.13.0
six==1.10.0
update-checker==0.16
wrapt==1.10.10
runtime.txt
Again as described in Heroku documents, this file contains the runtime for my script, containing:
python-3.6.0
I have changed my remote to heroku, added all files, commited and pushed to heroku master, but I get the error mentioned in the beginning. Is there something I'm doing wrong? I have seen this answer, but I'm not convinced. Would like to avoid any frameworks if possible.
git ls-files output
.gitignore
LICENSE
README.md
requirements.txt
runtime.txt
automation.py
python-3.6.1instead ofpython-3.6.0. Have you tried switching? Also, to sanity check, can you put the output ofgit ls-filesand theProcfile?Procfileis required - that's how Heroku knows what script to run for your app. Without it, Heroku doesn't knowautomation.pyis anything special. Note though - ifautomation.pydoesn't listen on any port, define the process name asworkeror something. If you define it aswebHeroku will expect it to bind to an externally visible port (not on localhost). If Heroku doesn't detect a port bind, it reports the app as failed to start.