|
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. |
|
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! Thank you. The idea is good, but I'd rather not touch the inside of .git directory for things not related to the git system itself. I'm worried that there might be unexpected/silent consequences. Is there any way to setup something like this but on the app-root-level .htaccess file? You could maybe try the DirectoryMatch directive in a .htaccess in the app root directory. http://httpd.apache.org/docs/2.2/mod/core.html#directorymatch Would you please give an usage example? I tried without luck (500 Internal Server Error) the following:
And what about "Directory" directive? I believe what you have should work. Just change .git to "^/.git" don't forget the quotes. Hmm no. I tried Maybe open a support ticket so we can take a closer look at what you have. Please provide the url you are testing with in the ticket.
showing 5 of 6
show all
|
|
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. |