http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/narr/environment.html#environment-chapter
something like this.
$ PYRAMID_DEBUG_AUTHORIZATION=1 PYRAMID_RELOAD_TEMPLATES=1 \
bin/paster serve MyProject.ini
does it meet your requirements?
On Oct 24, 2012, at 11:01 PM, Mark Huang <[email protected]> wrote:
> Hi,
>
> I want to set some environment variables on my Ubuntu machine before I run
> pserve command. Reason that it's not set in the ini file is because a
> particular python file in my Pyramid web application has no access to request
> parameter to retrieve the settings.
>
> I was thinking of overriding pserve command to add the environment variables
> in before it starts the application.
>
> Any way to do this? Couldn't find much about this topic in the docs. The
> closest thing to this was to use a setup script for pshell.....but then
> again....it's for the pshell command and not the pserve.
>
> Regards,
> Mark Huang
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pylons-discuss/-/_7kroRdiFdQJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.