We have a Magento store setup and under version control, we'd like to setup a staging store which uses the same code but different connection details. e.g. Live details for the live store and a staging database for staging.
Is this possible with Magento, there doesn't seem to be a way to do it by default?
There are many ways, one of the easiest that requires no additional extensions is
-> create
and do NOT version control local.xml
and symlink the right file at each environment this way you can keep all connection info in svn or git,
Tom,
Since you are using version control, I'd suggest you not have the same files for both staging and production. That's generally a bad idea. Ideally, you should have a different environment for staging and production, both having their own set of files, and their own database. This way, you don't have to worry about the hurdle you are experiencing now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With