Procfiles

Procfiles are used to define Explicit Services (Procfiles) for an app.

They are completely optional: in the absence of a Procfile, Enclave will fallback to an Implicit Service (CMD).

Providing a Procfile

If you are using Dockerfile Deploy, simply add a file named Procfile to the root of your git repository.

If you are using Direct Docker Image Deploy, you’ll need to set up a Companion Git Repository first.

Procfile syntax

The Procfile syntax is standardized, and consists of a mapping of one or more Service names to commands that should be executed for those Services.

The two should be separated by a : character.

Procfile examples

Single web service

web: bundle exec rails server

web and worker services

web: bundle exec rails server
worker: bundle exec sidekiq

Using environment variables

web: bundle exec rails server
worker: bundle exec sidekiq -c "$SIDEKIQ_CONCURRENCY"