Giter VIP home page Giter VIP logo

Comments (7)

cimocimocimo avatar cimocimocimo commented on June 12, 2024

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.

kitsos avatar kitsos commented on June 12, 2024

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.

atticoos avatar atticoos commented on June 12, 2024

@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.

mathieuhays avatar mathieuhays commented on June 12, 2024

@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.

jasonlmann avatar jasonlmann commented on June 12, 2024

@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.

mathieuhays avatar mathieuhays commented on June 12, 2024

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.

jasonlmann avatar jasonlmann commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.