'Could not find this type of process' heroku node deployment

I get "Can't find this type of process" when I try to do $ heroku ps:scale web=1. I looked at some other solutions that suggested that my Procfile is correctly written and configured correctly.

This is the exact error I get:

    heroku ps:scale web=1
Scaling dynos... !
 β–Έ    Couldn't find that process type.
Error: ENOENT: no such file or directory, open '/Users/XXXXXX/.cache/heroku/error.log'
    at Object.fs.openSync (fs.js:584:18)
    at Object.fs.writeFileSync (fs.js:1316:33)
    at Object.fs.appendFileSync (fs.js:1362:6)
    at log (/usr/local/Cellar/heroku/6.6.7/libexec/node_modules/heroku-cli-util/lib/errors.js:87:6)
    at handleErr (/usr/local/Cellar/heroku/6.6.7/libexec/node_modules/heroku-cli-util/lib/errors.js:102:9)
    at process._tickCallback (internal/process/next_tick.js:109:7)
+5
source share
3 answers

I found out what the problem is, in my project I did not click on the main branch and I was executing the wrong git code. Thus, the correct way to click on Heroku, if you are working with a different branch, is as follows:

git push heroku <branch_name>:master
+9
source

Although Rails has the following answer, it can certainly be applied to any infrastructure.

:

Default types for buildpack -> console, rake, web, worker

( git push, Heroku)

( - ) , buildpacks . :

$ heroku buildpacks --app myapp
=== myapp Buildpack URLs
1. heroku/ruby
2. https://github.com/some/buildpack.git

heroku/ruby, . , buildpack , heroku/ruby. , , buildpack . buildpacks:remove buildpacks:add --index:

$ heroku buildpacks:remove https://github.com/some/buildpack.git --app myapp
$ heroku buildpacks:add --index 1 https://github.com/some/buildpack.git --app myapp
$ heroku buildpacks --app myapp
=== myapp Buildpack URLs
1. https://github.com/some/buildpack.git
2. heroku/ruby

git push, web worker.

+1

, heroku , , , , , .

heroku ps:scale web=0

0

Source: https://habr.com/ru/post/1677298/


All Articles