I'm trying to set up multi-environment configs.
I have specific db settings I want to change depending on environment. I am using localhost
and my Digital Ocean server IP address in my db.php file.
<?php
return array(
'*' => array(
'tablePrefix' => 'craft',
),
'localhost' => array(
'server' => 'localhost',
'user' => 'root',
'password' => 'root',
'database' => 'something',
),
'xxx.xxx.xxx.xxx' => array(
'server' => 'localhost',
'user' => 'some_user',
'password' => 'some_password',
'database' => 'somethingelse',
),
);
I've tried switching the order, that did not work.
Do I need to use a domain name rather than a IP address here?