Environment Variable siteURL ignored In my general.php file I have a siteUrl environment variable declared:

'ontherocks.dev' =&gt; array(
    'devMode' =&gt; true,
    'environmentVariables' =&gt; array(
        'siteUrl'  =&gt; 'http://local.ontherocks.dev/',
    )      
),

'dev.livesite.com' =&gt; array(

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


But when calling it on my page to get page url: siteUrl ~ entry.url
siteUrl is appearing as it is defined in the Craft CMS General Settings SiteUrl.
Is it possible for the environment variable to take precedence?
In your Control Panel, go to Settings > General.

Then set your Site URL to {siteUrl}.

This will parse out the siteUrl environment variable. For more information, see this thread...