Re: [fw-general] Deployment dependent code

2007-06-25 Thread Nico Edtinger
[25.06.2007 18:00] Stephan Stapel wrote: Is this the path that you'd also sugggest to take? And how to best decide which section is correct? Based on the $_SERVER['HTTP_POST'] value? Or are there better alternatives? If you have an extra user for your application on your live servers you c

Re: [fw-general] Deployment dependent code

2007-06-25 Thread Ramon de la Fuente
Hi Stephan, Besides using inheritance in the Zend_Config I also use a variable to make sure no debug information is sent to the browaers from a live website. In the bootstrap I do the following: $islive is set to TRUE or FALSE according to the $_SERVER['HTTP_HOST'] variable (but that's being

Re: [fw-general] Deployment dependent code

2007-06-25 Thread Dave Lyon
We use a shell script wrapper for rsync for deployment with all config values based on deployment type. Following the rsync, the shell script automatically rewrites the appropriate deployment flag in the config file. On Jun 25, 2007, at 9:27 AM, Stephan Stapel wrote: Hi! I guess a lot of

Re: [fw-general] Deployment dependent code

2007-06-25 Thread Karol Grecki
Stephan, You can have multiple configurations using Zend_Config, then you just need a way to tell which section to load. There are many ways to do that. For example checking an existence of a file. I recently deployed a ZF project and I look for a 'production' file, if it's missing I load a stagi

Re: [fw-general] Deployment dependent code

2007-06-25 Thread Andries Seutens
" <[EMAIL PROTECTED]>; "Gunter Sammet" <[EMAIL PROTECTED]>; "Zend Framework" Sent: Monday, June 25, 2007 10:24 AM Subject: Re: [fw-general] Deployment dependent code Kevin, I am saying that you shouldn't trust the $_SERVER superglobal as much as most peop

Re: [fw-general] Deployment dependent code

2007-06-25 Thread Kevin McArthur
tions. K - Original Message - From: "Andries Seutens" <[EMAIL PROTECTED]> To: "Kevin McArthur" <[EMAIL PROTECTED]> Cc: "Stephan Stapel" <[EMAIL PROTECTED]>; "Gunter Sammet" <[EMAIL PROTECTED]>; "Zend Framework" Sent

Re: [fw-general] Deployment dependent code

2007-06-25 Thread Andries Seutens
lt;[EMAIL PROTECTED]>; "Zend Framework" Sent: Monday, June 25, 2007 10:09 AM Subject: Re: [fw-general] Deployment dependent code Stephan Stapel schreef: Have a look at Zend_Config (http://framework.zend.com/manual/en/zend.config.adapters.ini.html <http://framework.zend.com/man

Re: [fw-general] Deployment dependent code

2007-06-25 Thread Kevin McArthur
el" <[EMAIL PROTECTED]> Cc: "Gunter Sammet" <[EMAIL PROTECTED]>; "Zend Framework" Sent: Monday, June 25, 2007 10:09 AM Subject: Re: [fw-general] Deployment dependent code Stephan Stapel schreef: Have a look at Zend_Config (http://framework.zend.com/manu

Re: [fw-general] Deployment dependent code

2007-06-25 Thread Matthew Weier O'Phinney
-- Stephan Stapel <[EMAIL PROTECTED]> wrote (on Monday, 25 June 2007, 06:00 PM +0200): > >Have a look at Zend_Config > >(http://framework.zend.com/manual/en/zend.config.adapters.ini.html > >). > > I am already using the config cl

Re: [fw-general] Deployment dependent code

2007-06-25 Thread Andries Seutens
Stephan Stapel schreef: Have a look at Zend_Config (http://framework.zend.com/manual/en/zend.config.adapters.ini.html ). I am already using the config classes. I was just asking myself if someone has best practises on using th

Re: [fw-general] Deployment dependent code

2007-06-25 Thread Ralph Schindler
I do this very thing. The only requirement is that you have access to setting apache environment variables. Essentially, I have this in my development vhost: SetEnv APPLICATION_STATE development My bootstrap file reads the environment variables to determine what section of the config to read

Re: [fw-general] Deployment dependent code

2007-06-25 Thread Stephan Stapel
Have a look at Zend_Config (http://framework.zend.com/manual/en/zend.config.adapters.ini.html ). I am already using the config classes. I was just asking myself if someone has best practises on using these classes. In fact, I

Re: [fw-general] Deployment dependent code

2007-06-25 Thread Shaun Rowe
Matthew Weier O'Phinney wrote: -- Stephan Stapel <[EMAIL PROTECTED]> wrote (on Monday, 25 June 2007, 05:27 PM +0200): I guess a lot of you have the problem to have code that is used within multiple environments, a (local) environment for development, another for testing and a third for producti

Re: [fw-general] Deployment dependent code

2007-06-25 Thread Matthew Weier O'Phinney
-- Stephan Stapel <[EMAIL PROTECTED]> wrote (on Monday, 25 June 2007, 05:27 PM +0200): > I guess a lot of you have the problem to have code that is used within > multiple environments, a (local) environment for development, another > for testing and a third for production. > > Usually, some thin

[fw-general] Deployment dependent code

2007-06-25 Thread Stephan Stapel
Hi! I guess a lot of you have the problem to have code that is used within multiple environments, a (local) environment for development, another for testing and a third for production. Usually, some things like database configuration differ between these environments. I was asking myself if