FerryDocs

Start command

The start command starts your app in each container. Ferry finds it in three places, in order.

Edit on GitHub

The service. The start command of the service (--start-cmd).

1 / 3
Ferry uses the first start command that it finds

This order is for the images that Ferry generates.

Set the start command

Terminal
ferry create mailer --type worker --repo https://github.com/you/app --start-cmd "node worker.js"

Ferry runs the with /bin/sh -c. Thus $PORT and other variables expand.

The Procfile entry

Service typeEntry of the
Web service, private service, static siteweb:
Background workerworker:
Cron jobcron:. If there is none, worker:.

A cron job needs no start command: its command can come when it runs.

See the choice

The build log shows the start command and its origin.

Deploy log
==> Start command: npm start (the "start" script of package.json)

If an instance stops immediately, read this line. A default such as the main file of a library does not always start a server. See The app exits right away.

On this page