Making a dynamic {{ siteUrl }} for local mobile testing I'm developing a site using a mobile first approach, connecting the phone via USB and using Safari's Web Inspector on iOS8.

On my local machine, the url for all CSS, JS and href links is http://localhost:8888/ (running MAMP) but on the phone it's my IP or http://00.00.00.00:8888/

Right now, this issue is breaking the entire site when testing on a device. All links are broken. 

How can I make the Craft variable {{ siteUrl }}... well variable?
Hey Jeremy you can actually make siteUrl work using Multi-Enviroment Configs and your general.php file will end up looking something like this.

return array(
'*' =&gt; array(
    // ...
),

'example.dev' =&gt; array(
    // ...

    'environmentVariables' =&gt; array(
        'basePath' =&gt; '/users/brandon/Sites/example.dev/public/',
        'baseUrl'  =&gt; 'http://example.dev/',
    )
),

'example.com' =&gt; array(
    // ...

    'environmentVariables' =&gt; array(
        'basePath' =&gt; '/storage/av12345/www/public_html/',
        'baseUrl'  =&gt; 'http://example.com/',
    )
)


);