Skip to content

Feature request: set env var containing Procfile "process type" name #148

Closed

Description

@martijnthe

Thanks a lot for creating overmind! I've been using it as a better version of heroku local.

One thing I've been missing is a way to determine from a child process what the "process type" was.

For example, given this Procfile:

web: bin/local/start-web.sh
worker: bin/local/start-worker.sh

heroku local sets a DYNO env var to web.1 in the web child process.
Similary, foreman automatically sets a FOREMAN_WORKER_NAME env var.

Would it make sense to add this to overmind too? Perhaps a OVERMIND_WORKER_NAME variable?

Activity

  1. Envek commented on Mar 5, 2024

    @Envek
    Collaborator

    Just for history: original foreman actually uses PS variable for this. See ddollar/foreman#340

    But node-foreman for some reason decided to use FOREMAN_WORKER_NAME (see strongloop/node-foreman@d75ea2d) 1 year later after foreman started to use PS. Weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions