3 ms·
This approach is fine for static websites, but for web applications you should probably block requests to /.git so that people can’t clone your application off
by supriyo-biswas 3y ago
This approach is fine for static websites, but for web applications you should probably block requests to /.git so that people can’t clone your application off of the web.
- p4bl0 3y agoThe .git directory doesn't necessarily need to be in the public directory at all.
- quectophoton 3y agoIf anyone wants to read more about this, search for `GIT_DIR` and `GIT_WORK_TREE` environment variables.
- trifurcate 3y agoOr, put your files under html/ in your repo, and push to /var/wwwroot (using the common /var/wwwroot/html setup)
- ozim 3y agoIt is always good reminder anyway to tell people to either make public dir not root of repo or block .git.