Skip to content

Should the whole web directory (httpdocs) be put into the repo? #22991

Answered by lee-dohm
flouty asked this question in New to GitHub
Discussion options

You must be logged in to vote

It depends upon the project. For projects that have some sort of compilation or build routine, like a project that builds an executable, you would typically include the source files, data files, and any scripts for building or packaging the project. For web projects where there isn’t a build process, only HTML and CSS files, then you would typically include everything that you expect to deploy to the web server. Some other web projects have a build process for assets (optimizing image files, minimizing JavaScript and CSS, etc) where you might store the source  and the built assets.

Most of the time, you store what can’t be generated by some other file in the project.

Let us know if you ha…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants