|
|
 |
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.
|
 |

July 3rd, 2009, 01:07 PM
|
|
Registered User
|
|
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

July 3rd, 2009, 04:23 PM
|
|
Wrox Author
|
|
Join Date: Nov 2008
Location: Buenos Aires, , Argentina.
Posts: 17
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
That is a problem of file system permissions
Quote:
Originally Posted by boinkster
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?
|
|

July 5th, 2009, 06:42 PM
|
|
Registered User
|
|
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

July 5th, 2009, 06:58 PM
|
|
Wrox Author
|
|
Join Date: Nov 2008
Location: Buenos Aires, , Argentina.
Posts: 17
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |