Why don't you move your working directory to separate the live application from the checkout? That's how we have it set up at work. Each team member has their own local working directory as well as their own separate vhost on our test server (though we generally all share one test database). Transferring files to the test server via SFTP isn't much of a hassle since it's all local and Aptana has an auto-upload-on-save script. I honestly don't feel there's that much of a difference from working right out of the www root directory.
Or you could just do what I do at home--store user-uploaded images in / app/webroot/files/img and add that path to svn:ignore. On May 20, 10:27 pm, mikeottinger <[email protected]> wrote: > Hi All, > > I have a site that allows the user, through an admin section, the > ability to upload his own images to the site, a very poor man's CMS if > you will. This has all worked pretty well but for one annoying aspect > that I finally want to address. Currently all uploaded images are > placed in app/webroot/img where they're used with the html helpers. > Why I don't like this approach is that these files get mixed in with > files under source control. My production server is basically an SVN > checkout of the application. Everything is perfectly in synch with SVN > except for these user uploaded images. What I had in mind was setting > aside a directory outside of the cakephp app instance and have my > image paths point to there. This doesn't work because this outside > directory is not a document root to the web server. I suppose I could > setup a separate host configuration within apache and place them in > its document root. Long story short, has anyone devised any better > ways to keep user generated content out of the application's directory > structure? > > Thanks in advance. > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with > their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
