Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable configuring which process type (web, worker, etc.) to run instead of defaulting to "web" #732

Closed
motin opened this issue Oct 29, 2014 · 4 comments

Comments

@motin
Copy link
Contributor

motin commented Oct 29, 2014

Currently, dokku is hard-coded to start the "web" process on deploy.

Instead, this should be configurable so that any process type (web, worker, etc.) defined in the Procfile can be run. A config-directive PROCESS_TYPE that defaults to web if not set to determine this, maybe?

This would make it possible to start worker processes as different docker containers / deployments so that we don't have to resort to using dokku-shoreman or dokku-supervisord, who both require manual efforts to avoid port collisions.

This brings dokku closer to how Heroku and other PaaS handle process types - each process is started in it's own container/dyno.

@josegonzalez
Copy link
Member

A procfile isn't strictly necessary with dokku though. Is this related to #733 ?

@motin
Copy link
Contributor Author

motin commented Oct 30, 2014

A procfile isn't strictly necessary with dokku though.

This enhancement would not change that fact in any way. :)

Is this related to #733 ?

Not really. It could be, if we'd call the environment variable DYNO instead of PROCESS_TYPE, but I find PROCESS_TYPE more descriptive.

@josegonzalez
Copy link
Member

A pr to add this functionality would be great. I can't think of a good way myself to implement it.

@josegonzalez
Copy link
Member

As of #1118, we now have container-level scaling, which allows you to run whichever process in the Procfile you see fit :)

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

No branches or pull requests

2 participants