Hi, I am deploying my projects with Git. I know that the popular approach to Git deployment is: "to create bare repositories each checked out to a "working" area, which use a post-receive hook to update the actual files served by the website."
However, for some CMS websites, I need to include in the version control the changes made by the website users (for example, when they upload a picture).
What would be a good approach for this case?
What I did, is to set up a repo (no bare) in the
Any ideas and thoughts are appreciated.
asked Oct 13 '12 at 10:47
This sounds like a fine approach, although you are correct that exposing the
using something like this instead:
Since you're hiding an entire directory, you would place this inside of
Hope that helps!
I just wanted to let you know that I blocked/hide the .git folder using the following .htaccess code in the app root directory:
You can change it to
I couldn't make DirectoryMatch work. It would be nice if some of you share a tested/working code of this, just to have one more alternative.
answered Mar 05 at 13:01