codahale/dropwizard — Issue #40: Allow for command-line overrides of configuration parameters
Author: codahale
Created: 2012-02-27 21:55:54+00:00
State: open
Labels: feature

As @bradhouse said on the mailing list:

> I reguarly launch services with Foreman and usually launch multiple instances at the same time. Each instance needs a different port.

> A more serious issue is if you want to run a DW service on something like Heroku. You must bind on the port they define via the $PORT environment variable. If you cannot pass this on the CLI you cannot run on their service. System.getenv("PORT") also works, but there are no bind points in DW to alter a Configuration instance prior to Jetty start. Not surprising as the DW approach strongly favours immutable configuration.