You can do that through the gearbox command.

"gearbox serve" support passing variables in name=value format. As those
variables come from the shell, they can be set to environment variables
like "gearbox serve --debug listen_port=$PORT"

Then inside your "development.ini" / "production.ini" you can use those
variables "get option = commandline_varname" according to previous example
it would be "get port = listen_port"



On Sun, Dec 4, 2016 at 6:04 PM, <[email protected]> wrote:

> Hi
> working on a Tg 2.3.9 project here, and I would like to use environment
> variables for configuring my app, say the sql endpoint, how can i do that?
> Can i use environment variables inside my production.ini?
> or with the *gearbox serve* command?
>
> Thanks
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/turbogears.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to