I am trying to make my Discord bot, located here on Github, but my settings from my Procfile
are not showing up.
I have tried checking the file is only procfile
, remaking the file, changing the code.
worker node bot.js
I expect Heroku to run node bot.js
but I get just the default npm start
, No worker stuff.
Make sure the file is called Procfile
, with a capital P, not procfile
. You use both versions in your question but only Procfile
is correct.
Add a colon after the process type:
worker: node bot.js
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.