'Run the node.js heroku app with command “truffle exec”

I have a Truffle project executed with node.js script and want to run it in Heroku with truffle exec command, but I got the error message sh: 1: truffle: not found

error message

Is there any way to use Truffle command in Heroku?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source