How do I run custom commands before my Node application starts?

When you add your application code to Cloud 66, we analyze your framework and automatically set up the default start command for that framework - in this case npm run

If you need to run any additional or custom startup commands, you should add them to your Procfile.

IMPORTANT:

When you add your application to Cloud 66 for Node, we put your code into a folder named /app. If you are running any custom commands via shell scripts or a Procfile, you need to ensure that they are executed in this path or they will fail.