Allow to give application-dependent parameters to application configuration file.

parent 12851050
...@@ -105,6 +105,11 @@ class Recipe(GenericBaseRecipe): ...@@ -105,6 +105,11 @@ class Recipe(GenericBaseRecipe):
port=self.options['port'], port=self.options['port'],
# XXX-Cedric: add frontend url. # XXX-Cedric: add frontend url.
) )
# Allow to give custom parameters to template
application_parameter_prefix = 'application-'
for key in self.options.keys():
if key.startswith(application_parameter_prefix):
application_conf[key.lstrip(application_parameter_prefix)] = self.options[key]
directory, file_ = os.path.split(self.options['configuration']) directory, file_ = os.path.split(self.options['configuration'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment