p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Leveraging Drupal: Getting Your Site Done Right ISBN: 9780470410875
This is the forum to discuss the Wrox book Leveraging Drupal: Getting Your Site Done Right by Victor Kane; ISBN: 9780470410875

Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Leveraging Drupal: Getting Your Site Done Right ISBN: 9780470410875 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 3rd, 2009, 01:07 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default files directory in SVN repository

Thanks for your book. It has been most enlightening on managing Drupal projects.

I'm having trouble with SVN and the files directory. Specifically, all the sub dir/files that Drupal creates. Since they are owned by 'nobody', when I run SVN it chokes on them since it doesn't have write permissions, which adds locks and generally buggers up the check out.

Constantly scanning the files dir for new items to chmod doesn't seem practical.

While pouring over your excellent book for clues, I noticed (page 116 figure 5-5) in the Trac log of commits that the 5th commit has the message "moved files directory out of version control"

How do you deal with this? Is keeping the files dir in the repository possible without lots of intervention?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old July 3rd, 2009, 04:23 PM
Wrox Author
Points: 106, Level: 2
Points: 106, Level: 2 Points: 106, Level: 2 Points: 106, Level: 2
Activity: 14%
Activity: 14% Activity: 14% Activity: 14%
 
Join Date: Nov 2008
Location: Buenos Aires, , Argentina.
Posts: 17
Thanks: 0
Thanked 3 Times in 3 Posts
Default That is a problem of file system permissions

Quote:
Originally Posted by boinkster View Post
Thanks for your book. It has been most enlightening on managing Drupal projects.
Thanks!

Quote:
I'm having trouble with SVN and the files directory. Specifically, all the sub dir/files that Drupal creates. Since they are owned by 'nobody', when I run SVN it chokes on them since it doesn't have write permissions, which adds locks and generally buggers up the check out.
'nobody' is the user used by the Apache HTTP Server; when you upload a file, it is created by that user.

Basically, in order to include the files sub dir, the user who is going to be doing the "svn add" or "svn commit" or "svn update" needs to have group privileges there.

You can do this, or else set up a cron job or else run a script to change permissions recursively each time you are going to use SVN on that subdir.

Victor Kane

Quote:
Constantly scanning the files dir for new items to chmod doesn't seem practical.

While pouring over your excellent book for clues, I noticed (page 116 figure 5-5) in the Trac log of commits that the 5th commit has the message "moved files directory out of version control"

How do you deal with this? Is keeping the files dir in the repository possible without lots of intervention?
__________________
Victor Kane
http://awebfactory.com.ar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old July 5th, 2009, 06:42 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm starting to get a handle on file user management. I still have some questions:

Does keeping everything writable pose a security risk? (all my projects are on VPS or dedicated servers)

Keeping up with dirs/files created by Drupal can be accomplished with a recursive chmod and svn add. What about files that Drupal deletes? I.E. a node with an attached file is deleted or imagecache settings are changed flushing the dir. The files should be removed from the repo as well. Imagecache dirs could be set to svn ignore since the files are created on the fly. But not all modules are that obvious.

I guess what I asking is: Does maintaining the files directory under version control over time with an active project require lots of manual tweaking and upkeep?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old July 5th, 2009, 06:58 PM
Wrox Author
Points: 106, Level: 2
Points: 106, Level: 2 Points: 106, Level: 2 Points: 106, Level: 2
Activity: 14%
Activity: 14% Activity: 14% Activity: 14%
 
Join Date: Nov 2008
Location: Buenos Aires, , Argentina.
Posts: 17
Thanks: 0
Thanked 3 Times in 3 Posts
Default Separate development from production asset concerns

I think there is no simple answer to what you are asking.

Perhaps it is best, as done in the book Leveraging Drupal, to apply a separate strategy to version control vis a vis backup for production assets, on the one hand, and development concerns, on the other.

Victor Kane
__________________
Victor Kane
http://awebfactory.com.ar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Database in repository questions FilmKnurd BOOK: Leveraging Drupal: Getting Your Site Done Right ISBN: 9780470410875 1 February 7th, 2009 05:55 AM
Directory.GetFiles got other not related files cmyeung_99 C# 2005 0 June 29th, 2006 10:16 PM
How do I read all the xml files in a directory hkec C# 0 May 11th, 2006 02:10 AM
View Files in a Directory echovue Access 1 October 15th, 2005 03:36 PM
displaying files from a directory mh ASP.NET 1.1 6 April 15th, 2005 11:43 AM



All times are GMT -4. The time now is 03:47 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc