> On Thu, 27 Apr 2006 23:24:42 -0400, Jonathan Vanasco <[EMAIL PROTECTED]>
> said:
> I think i owe this list a keg or two by now.
Although they haven't mentioned -D/define yet?
--
andreas
On Apr 28, 2006, at 3:55 PM, vzn0529 wrote:
$ make_build.pl --version 1.4 --type prod ## The release script
toggles my config file parameter to prod.
I gave up on that stuff a while back. Now I have all my webapps as
svn checkouts, and deny access to .svn dirs. I branch trunk into a
ne
Jonathan Vanasco wrote:
I'd like to flag whether my app is running on dev or prod with a
variable that's in httpd.conf
( right now i manually toggle a var in a config file, and its driving
me nuts )
Maybe you should consider automating the toggling as part of your
build-release script? My c
On Apr 28, 2006, at 1:47 AM, Perrin Harkins wrote:
$My::App::DEV_MODE = 1;
Nice
On Apr 27, 2006, at 11:42 PM, Geoffrey Young wrote:
http://perl.apache.org/docs/2.0/api/Apache2/
ServerUtil.html#C_dir_config_
Ok. i'll submit a patch for PerlSetVar later.
While ServerUtil says this:
$s
On Thu, 27 Apr 2006 21:28:24 -0400
Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
>
> I'd like to flag whether my app is running on dev or prod with a
> variable that's in httpd.conf
> ( right now i manually toggle a var in a config file, and its
> driving me nuts )
>
> i wanted to use PerlSetVar
Jonathan Vanasco wrote:
I'd like to flag whether my app is running on dev or prod with a
variable that's in httpd.conf
$My::App::DEV_MODE = 1;
- Perrin
>> I really thought PerlSetVar could be done at any phase of a request,
>> but even if it can't, PerlSetEnv can... try using that and
>> $ENV{DEBUG_MY_APP} or something. :-)
>
>
> i did too, but according to the docs its accessible as part of a
> request record, so env it is
http://perl.ap
On Apr 27, 2006, at 11:24 PM, Jonathan Vanasco wrote:
Not a fan of that... but i the docs right next to is is
PerlSetEnv. Thats cleaner.
M(#*^&%, PerlSetEnv only works in dir/loc blocks
sadly, the 'easiest' way seems to be me to do this:
httpd.conf-dev
require /webserver/sites/mp
On Apr 27, 2006, at 9:33 PM, Philip M. Gollucci wrote:
you could set an ENV var in a shell (the httpd's user's login shell)
and then add
PerlPassEnv VARNAME
Not a fan of that... but i the docs right next to is is PerlSetEnv.
Thats cleaner.
On Apr 27, 2006, at 9:59 PM, Tyler MacDonald wro
Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
>
> I'd like to flag whether my app is running on dev or prod with a
> variable that's in httpd.conf
> ( right now i manually toggle a var in a config file, and its driving
> me nuts )
>
> i wanted to use PerlSetVar, but that's read at request time
you could set an ENV var in a shell (the httpd's user's login shell)
and then add
PerlPassEnv VARNAME
to httpd.conf
your code can then check it via $ENV{VARNAME}
Of course you only need to do this if you've done PerlSetupEnv Off (1.3.x) or
are under SetHandler modperl in (2.x)
Otherwise you
I'd like to flag whether my app is running on dev or prod with a
variable that's in httpd.conf
( right now i manually toggle a var in a config file, and its driving
me nuts )
i wanted to use PerlSetVar, but that's read at request time - which
won't work, as this needs to be read before a
12 matches
Mail list logo