wesleytodd / YeoPress

A Yeoman generator for WordPress
Other
1.08k stars 163 forks source link

Install in Subfolder of Webroot #122

Closed Kageetai closed 9 years ago

Kageetai commented 9 years ago

Hi,

I normally use XAMPP for developing my sites locally and just have several projects in the document root of XAMPP in folders next to each other. But with the default setting in the generated ´wp-config.php´ assumes the project to be in the document root itself. Of course I can change the values for the paths to include the subfolder, but is there a better way or maybe the possibility to include that option in the generator process? Regarding that I was also wondering where the setting for the site url, which I inputed in the generator, is used at all? And can I move the settings for ´WP_SITEURL´ to the ´local-config.php´ and it will overwrite any settings in the ´wp-config.php´?

Thanks

wesleytodd commented 9 years ago

The assumptions built into this generator are based of running at the root of a domain, as that is how most people will run in production. I would recommend just setting up more subdomains in your dev env.

Getting a generator like this to handle all these different use cases is pretty difficult, and I tried to get the main ones. But if you want to submit a PR for this feature I would be happy to work with you on it.

The local-config.php should allow you to overwrite all those settings.

Kageetai commented 9 years ago

Okay, I configured the local-config.php so now it works