[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: hook deployment script [trying svn up]

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-03-13 21:43:52 CET

Hook scripts run with a nearly-empty environment and under the user
account that your server process runs under. So, you must be sure to
A) use full paths to executables, file locations, etc. and B) grant
access for that account to any resources which your script requires.
Do not count on mapped drives unless you map them in your hook script.

I don't recall if you told us how you're serving the repository. If
you're serving via Apache, it typically runs under the local system
account on Windows, so you'd have to give that account rights to that
UNC path. It would be a good idea to create a domain account with
limited rights to run Apache under in this case so that it can access
your UNC paths for updates and you don't have to mess with granting
server A's system account rights on server B..

On 3/13/07, smakawhat <smakawhat@yahoo.com> wrote:
> I also tried using a UNC path but it's the same issue.
> smakawhat <smakawhat@yahoo.com> wrote:
> Well I got the script working just by using an svn update D:\mypath
> statement.
> However it doesn't transfer unless I run it from the actual server. I am
> thinking because I have a drive letter specified in the path. I know that
> it mentions environment variables aren't set in hook scripts but this
> shouldn't matter cause I wrote an explicit path.
> Andy Levy <andy.levy@gmail.com> wrote:
> On 3/13/07, smakawhat wrote:
> > so this line: (including the correct paths)
> >
> > "C:\Path\To\svn.exe C:\Documents\MyWebSite"
> >
> > in the hook script is all I need for working copies from developers to
> > transfer over to the webserver automatically?
> >
> > The hook file should be in the hooks directory of the repository and in
> this
> > case should be and executable say changing it to 'post-commit.exe' woud
> > execute it?
> You cannot just change a file's extension to .exe to make it
> executable. You're talking about writing a batch script, which in
> Windows 2000/2003 needs either a .bat or .cmd extension.
> Naming a batch script .exe is probably what's causing your NTVDM issue.
> Please STOP changing your subject line on every post, as it is
> breaking some peoples' mail clients (GMail for example) and makes in
> general makes it harder to track the discussion.
> ________________________________
> No need to miss a message. Get email on-the-go
> with Yahoo! Mail for Mobile. Get started.
> ________________________________
> TV dinner still cooling?
> Check out "Tonight's Picks" on Yahoo! TV.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 13 21:44:39 2007

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.