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

No way to make the exec line dynamic #69

Open
fgabolde opened this issue May 17, 2018 · 0 comments
Open

No way to make the exec line dynamic #69

fgabolde opened this issue May 17, 2018 · 0 comments

Comments

@fgabolde
Copy link

fgabolde commented May 17, 2018

I'm using Tiller to set up a web application's config files.

The app expects the number of HTTP workers to be provided as a command-line argument, there is no way to provide it as an environment variable or in a config file. E.g:

exec: ["carton", "exec", "plackup", "-Ilib", "-s", "Starman", "--workers", "5", "--port", "5000", "--env", "production", "bin/app.psgi"]

starts the app with 5 workers. I'd like to specify this number via an environment variable instead, e.g.:

docker run --env WORKERS=10 myapp:latest

I have not found any way to do this in the documentation. Looking at the source code I don't think I can do anything like ["--workers", $WORKERS] but I am not a Ruby developers so might have missed something.

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

No branches or pull requests

1 participant