Comments (7)
I'm sure it can be done but that would defeat the purpose of keeping WP in it's own directory. This is done so that everything in the /wp/ directory is the current checked out version of Wordpress.
from wordpress-skeleton.
Yeah, but you still can add to .gitignore a file inside the /wp/ directory. So in your point of view there is not a serious practical reason for following this practice.
from wordpress-skeleton.
@kitsos, adding a file inside the wp/
directory would defeat the purpose of git submodules. Keeping the separation of responsibilities between the current project, and it's dependency (wordpress) is why we want to be doing it like this.
from wordpress-skeleton.
@kitsos the technical reason is that you must track your config file in your repository because of the configuration of the different stage and all the other parameters you might define inside. So you can't put it in your gitignore file.
Putting it in the submodule would be bad practises and might lead you to loose your configuration in the future.
from wordpress-skeleton.
@mathieuhays That makes sense, but is there any security risk to including wp-config in a repo? Should I always use private repos with a site built in this way? Thanks.
from wordpress-skeleton.
There is no security risk here because the database credentials are populated on deployment ( strings like %%DB_NAME%% are replaced when you deploy using WP Stack ) so you shouldn't replace them yourself (if that's what you're doing).
Actually there is still room for improvement security wise. If we wanted to be more secure we could also replace the salts and the db prefix in the same fashion as we do for the db credentials.
As for now, I would suggest using private repos.
from wordpress-skeleton.
Thanks, that's really helpful. I didn't even know about WP Stack. Looking at that now. (As may be obvious, I am teaching myself as I go.)
from wordpress-skeleton.
Related Issues (20)
- Update to Wordpress 4.4.2
- wp_localize_script doesn't appear to work
- Cannot Access Uploads Directory HOT 2
- Help Starting HOT 2
- Woocommerce template overrides not working
- Differences from _s HOT 1
- Installation failed: Download failed. cURL error 60: SSL certificate problem: self signed certificate in certificate chain HOT 2
- Nginx [no multi site] HOT 3
- Can't Establish php database connection on MAMP HOT 1
- Changing symlinks for media files stored in /shared/ HOT 2
- Broken Customizer After Migration
- '/content' directory not found beside '/wp' directory (get_template_directory_uri) HOT 1
- normalize.css doesn't appear here. Why? HOT 1
- How to change language of site and admin dashboard? HOT 1
- Repeated 403 console error when changing siteurl
- Update WP Skeleton to 4.2 Please HOT 1
- Multisite note HOT 7
- Problem loading theme assets HOT 1
- Question: Multisite, local (XAMPP) install
- MAMP/LAMP Multisite issues with my imported DB
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-skeleton.