I am trying to synchronize development between a Windows user (WAMP) and a Mac user (Regular Apache).
Windows User (me) Since I use IIS I need my port 80 so I have changed the ports on WAMP to :666.
So the url to the Wordpress is http://localhost:666/projectname/
Mac user He has the site on a non-alias, just the path the the project
So the url is http://localhost/foldername/wordpress/
In wp-config.php I have the following code
if (file_exists('local_settings.php')) {
include('local_settings.php');
} else {
$debug_on = true;
}
And in the local_settings.php
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/projectname/');
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/projectname/');
But this code doesn't seem to actually override the damn stupid database siteurl because when he tries to login, it still heads to localhost:666 (which is the value in the database).
Or is it impossible to sync different developers? How do you guys do it? And please don't ask me to change my port to :80 :)