FerryDocs

Three rules for every language

The port, the start command and the build command obey the same rules in every language.

Edit on GitHub
Build command--build-cmdStart command--start-cmdYour app0.0.0.0:$PORT

The build command runs after the install of the dependencies.

1 / 3

Listen on 0.0.0.0 and on PORT

Ferry sets PORT to the that it routes to. The value is 10000, unless one of these is true:

  • You set --port.
  • You set a PORT variable.
  • Your exposes one port only.

See The port of your app.

The start command

Ferry uses the first that exists:

  1. The start command of the service (--start-cmd).
  2. The entry of the for the type of the service.
  3. The default of the language.
Type of serviceProcfile entry
Web service, private serviceweb:
Background workerworker:
Cron jobcron:, then worker:

The build command

A (--build-cmd) runs after the install of the . It can read your .

On this page