Home > Back-end >  Heroku "Couldn't find that process type"
Heroku "Couldn't find that process type"

Time:02-20

Been trying to deploy my python selenium code to Heroku but I keep running into this issue:

--

Terminal command:

heroku ps:scale bot=1

Output:

 »   Warning: heroku update available from 7.53.0 to 7.59.2.
Scaling dynos... !
 !    Couldn't find that process type (bot).

Procfile:

bot: python sfkafskafne.py

(Pycharm)

Pycharm

I'm deploying attempting to deploy to Heroku using the PyCharm terminal with the command above

CodePudding user response:

I'm deploying attempting to deploy to Heroku using the PyCharm terminal with the command above

None of the commands in your post deploy your code. heroku ps:scale scales dynos for code that has already been deployed.

Before you scale your dynos, you need to get your code onto Heroku by deploying it. You can do so via git push, GitHub integration, or Docker.

The first two options require that your code be committed to a Git repository. That's a good idea anyway, even if you choose to use Docker deployment.

For the first option, something like this should get you going:

  • Change to the project directory with cd INSTTTAAAAA
  • Create a Git repository with git init
  • Commit your code with git add . followed by git commit -m "Initial commit"
  • Add a remote with heroku git:remote
  • Push your code with git push heroku main

Beyond this, I suggest you read the documentation I linke to above. There's lots more to learn that's beyond the scope of a SO question.

You will also want to push your code to GitHub or similar as well. Heroku is not meant to be your primary source code repository.


Side note: I'm not sure if INSTTTAAAA and sfkafskafne mean something in a language that you speak, but if these are effectively random I strongly urge you to rename them. Using good, clear names is very important.

  • Related