siteUrl config and Control Panel conflict I have set up environments in my config file and included a different siteUrl for each. This is so I can change the navigation on the fly.

I have noticed however that siteUrl when defined in the CP is being used instead of the defined value in the config file. I was under the impression that the CP setting for siteUrl got ignored. What am I doing wrong?

I'm using the same database across both environments - would that be an issue?

return array(
     '*' =&gt; array(
         // ...
     ),
     // Local Dev
     'test.dev' =&gt; array(
         // ...
         'devMode' =&gt; true,
         'environmentVariables' =&gt; array(
             'assetsBasePath' =&gt; '/Users/joebloggs/Sites/work/example/shop/assets/',
             'assetsUrl' =&gt; 'http://test.dev/shop/assets/',
             'siteUrl'  =&gt; 'http://test.dev/',
         )
     ),
     // Live Dev
     'test.example.com' =&gt; array(
         // ...
         'environmentVariables' =&gt; array(
             'assetsUrl' =&gt; 'http://test.example.com/shop/assets/',
             'assetsBasePath' =&gt; '/home/example/public_html/shop/assets/',
             'siteUrl'  =&gt; 'http://test.example.com/',
         )
     ),
);
The siteUrl config setting is not meant to be added under environmentVariables.

'test.dev' =&gt; array(
    'siteUrl' =&gt; 'http://test.dev/',
    'environmentVariables' =&gt; array(
        // ...
    ),
    // ...
)