-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is not really an issue but a question #67
Comments
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. |
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. |
@kitsos, adding a file inside the |
@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. |
@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. |
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. |
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.) |
You are saying that wp-config.php cannot be inside /wp/. Why can't be?
Thanks in advance.
K.
The text was updated successfully, but these errors were encountered: