Create different environments for each, and if you can't be bothered to 
switch a variable indicating which environment you're using somewhere 
between the two servers, write a snippet to detect it from the URL/hostname.

http://www.symfony-project.com/book/1_0/05-Configuring-Symfony#Environments

Jonathan Bryan wrote:
> As well as the database settings, I have a number of other settings that 
> need to change depending on whether they are on the live server or my 
> local development machine. (for instance, for turning distant analytics 
> on/off)
>
> I can't find any recommended way of doing this in the symfony docs.
>
> It must be a common problem, so I wonder if I'm missing something obvious??
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to