AW: Re: Updating a live website with a post-commit hook script
From: Felix Gilcher <gilcher_at_exozet.com>
Date: 2006-06-29 17:40:24 CEST
Rainer Sokoll <mailto:r.sokoll@intershop.de> schrieb am Donnerstag, 29. Juni 2006 17:00:
> Greg Thomas wrote:
Well, the first directive does not add a mimetype but is a kind of a processing-directive. It basically says: "Files that end with .php" shall be handled by a special handler" (note that you can add any type of handler and any file-ending, making trivial to have all .html files parsed by php).
The second directive would force apache to send an "application/x-httpd-php" mime-type header with each php file. (The mime-type directive gets overwritten by php and is not required, otherwise your browser would not understand how to handle an "application/x-httpd-php" file.) There is some more magick to it, but to the best of my knowledge (I'm no sysadmin) this is how it basically works.
>
Even if it would pass the file through php: what would happen with all included files - those files do not exist on disk etc. You *might* be able to get that working by setting your includepath to "http(s)://your.subversion.host/svn/repository_path" but that would require url_fopen_wrappers to be enabled which is a bad idea (TM) if you ask me. All in all you're heading for lots of trouble. Better check your project out and use a post-commit hook to update the working copy. This is waaayyyy easier and less error prone. (btw: it's what we do and it's working pretty fine.)
>
Whatever you end up doing:
good luck
fg
-- Felix Gilcher Head of IT Development Exozet Berlin GmbH Rotherstraße 20 10245 Berlin eMail: gilcher@exozet.com URL: www.exozet.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org For additional commands, e-mail: users-help@subversion.tigris.orgReceived on Thu Jun 29 17:42:47 2006 |
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.