Using forever command to run node.js script on heroku

Viewed 480

So, I searched a lot before asking this here as I was not able to find a single answer related to this small problem.

I want to run node.js file on my heroku server which is on free-tier but I don't want to use node file.js. I want to use forever start file.js.

So, I did wrote the commands in my package files as well as defined a Procfile for worker: forever start file.js.

And deployed to heroku, but all the logs says that forever: bash command not found.

Any solution ?

0 Answers
Related