Stephen Melrose wrote:
> Hi.
> 
> This is (I'm hoping) a simple enough question.
> 
> I develop locally on my machine using XAMPP, then deploy my
> application to my linux server for staging testing, and then live.
> 
> I can do server specific settings easy enough using the config files.
> Lets take the database connection for example. This is my
> databases.yml (edited of course),
> 
> 
> prod:
>   myapp:
>     class:          sfPropelDatabase
>     param:
>       dsn:          mysql://user:[EMAIL PROTECTED]/myappdb
> 
> staging:
>   myapp:
>     class:          sfPropelDatabase
>     param:
>       dsn:          mysql://user:[EMAIL PROTECTED]/myappdb
> 
> all:
>   myapp:
>     class:          sfPropelDatabase
>     param:
>       dsn:          mysql://[EMAIL PROTECTED]/myappdb
> 
> 
> This works, but what if I want to test the prod environment on my
> local machine without having to constanting edit config files?
> 
> Is there a better/more preferred way of doing server specific settings
> accross multiple environments? Or are environments the server specific
> setting wrappers?
> 
> Thank you.

I tend to not sync the databases.yml file. You keep your copy local, and 
when deploying create it that one time. Then each sync the databases.yml 
is ignored, and you can do whatever you want locally and on all stages 
of deployment


-- 
Nathanael d. Noblet
Gnat Solutions, Inc
T: 403.875.4613

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to