so i'm making a discord bot in python and want to deploy it to Heroku to have the bot running 24/7. but Heroku isn't detecting my Procfile(and yes, that is not a .txt file) i've search on google and viewed questions like This and This but still it's not working. here's the Procfile code: worker: python bot.py can anybody help me with this? TIA!
Asked
Active
Viewed 214 times
0
BLA4KM4MBA
- 1
- 1
-
1Share GitHub repo or Heroku build.log. – Tin Nguyen Oct 12 '20 at 07:41
-
Declaring a `Procfile` isn't enough, nothing might be wrong with your code, you might have not started a dyno, use `heroku ps:scale worker=1` – FalseDev Oct 12 '20 at 15:47
-
@FalseDev it gives me the following error: Scaling dynos... ! ! Couldn't find that process type (worker). – BLA4KM4MBA Oct 14 '20 at 15:20
-
That doesn't sound very good with the `Procfile`, could you provide a link to it with it's exact name, like a repository? – FalseDev Oct 14 '20 at 15:27
-
@FalseDev i'm sorry, i'm late but here: https://git.heroku.com/jetha-bot.git – BLA4KM4MBA Nov 01 '20 at 06:31
-
The link you gave me is managed by heroku, meaning that without explicit access I cannot view it. – FalseDev Nov 05 '20 at 16:59
1 Answers
0
Some Online Guides seem to advise using the echo command to create the Procfile - not a text editor or the git files creator. Make sure you're in the correct directory and then use on the command line
echo>Procfile
Creating the Procfile with this method has been recommended and been successfully used to fix this issue in at least one other thread.
Dharman
- 26,923
- 21
- 73
- 125
LeMuffinMan
- 23
- 4