[web2py] Re: Problem with www-data ownership (or lack thereof)

2011-02-20 Thread pbreit
Ah, that makes sense. I'm never quite sure when to use sudo or not.

[web2py] Re: Problem with www-data ownership (or lack thereof)

2011-02-20 Thread Christopher Steel
I think the sudo is causing your problems. As long as your initial clone has (had) the correct permissions and you pull and update as www- data you should be fine. An unspecified "sudo" makes the owner of the files root. Something like this should give you the results you are seeking: def update(

[web2py] Re: Problem with www-data ownership (or lack thereof)

2011-02-19 Thread pbreit
I'm not sure if it's a hook or not but I'll just try adding a chown command to my deploy function. I was already specifying user='www-data' on the pull but am not sure if that does anything. def deploy(): sudo('cd /var/web2py/applications/%s; hg pull' % (app), user='www-data') sudo('cd /

[web2py] Re: Problem with www-data ownership (or lack thereof)

2011-02-19 Thread Dane
Does fabric/mercurial have post-receive hooks like git? I use this do a recursive chown after every update to be safe. On Feb 18, 11:54 pm, pbreit wrote: > I just had a site outage after deploying some code changes. Somehow, some of > my directories and files had become owned by root instead of w