Live is streaming live. Watch now.

Procfile for Custom Startup

How to override a Buildpack startup command (aka Procfile)

In order to override the startup command of a Buildpack you can use an extension less file with one line of text named Procfile. The Procfile was popular in Heroku the originators of The-Twelve-Factor-App. This file is commonly used to run batch and script files before running the command that would have originally be run by the Procfile.

  • Create a file called procfile.
  • Make sure the file is in the root of your source
  • Make sure the file is pushed to Cloud Foundry

Additional information can be found here: About Procfiles

Example Procfile

web: myscript.bat