We’re having issues getting the site_url to stick on our MSM sites. After digging through EE_Config.php and decoding/deserializing site prefs we were unable to arrive at an answer.
We’d like for $assign_to_config[‘site_url ‘] to take precedence over the database value, just as $config[‘site_url’] does. We alter the value based on the HTTP_HOST so we can work locally, push to staging, and on to production.
Currently we have to log in to the staging server and manually change Admin > General Configuration > URL to the root directory of your site every time we release.
Can you confirm that this is the desired behavior or are we missing something? If $assign_to_config[‘site_url’] isn’t respected, where/how does it actually get used?
Thanks!
v2.2.1 - Build: date 20110705