-
Notifications
You must be signed in to change notification settings - Fork 28
Description
First - thanks for this example - very helpful. I am fairly new to wordpress and am just starting some work on a website. I was trying to get things set up for a couple of us to work on different aspects of the project and decided to also use vagrant in combination with this wordpress-with-git.
I struggled to get the "configuration file in a different directory" setup working even though I seemingly was following all the steps, etc. It took me way too long to figure out that the issue all along had to do with the fact that my port in the vagrant environment is redirected - 80 --> 8080. So...all the wordpress access was to http://localhost:8080/. In order to get the wordpress-with-git project working, I had to change the wp-config.php URL lines to have something like the following:
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . '/wordpress');
I don't know that the [SERVER_PORT] approach I am doing is correct, however, it is working and I thought I would share it here.