3 ms·
This looks like a much more formalized structure than what we do. Do you use it in production currently or is this a prototype? This is my primary new WP proje
by mikegirouard 13y ago
This looks like a much more formalized structure than what we do. Do you use it in production currently or is this a prototype?
This is my primary new WP project approach (which isn't perfect):
mkdir Example-Project
cd Example-Project
# Grab the latest wordpress, www is our DocumentRoot
curl wordpress.org/latest.tar.gz | tar -xvz --
mv wordpress www
cd www
# Drop the default wp-content and symlink so we dont need to
# keep all of wp in Git
mv wp-content ..
ln -s ../wp-content
echo 'www/' >> .gitignore
# Make the repo
git init
git add . && git commit -m 'First!'
The main problem I run into is with the symlink'd wp-content directory. WP seems to not interpret it well and I have to set up Alias directives in the virtualhost configuration to compensate. Are you doing anything similar with the app/ directory?
- bretthopper 13y agoIt's being used in production for roots.io right now but it's still a work in progress. Seems like your issue has to do with your symlink setup. We don't need to do any special configuration with the web server. Here's the configuration that deals with app/: https://github.com/roots/bedrock/blob/master/config/application.php#L25-L27 https://github.com/roots/bedrock/blob/master/config/applicat...
- pestaa 13y agoI believe you're missing Options +FollowSymLinks from your Apache configuration and is not a problem with WP actually.