I’ve been trying to get my app running on Rails edge per the
instructions on Mike C.'s blog
(http://clarkware.com/cgi/blosxom/2007/01/18), specifically per the last
section of that post.
I’ve got edge working fine on my local machine, and I’ve set svn to
ignore vendor/rails so that it doesn’t get exported every time I
redeploy to the production machine. I’m using Rick O.'s deploy_edge
called from an after_update_code cap hook. The task gets called fine -
but I run into the following error:
** [out :: site.com] (in /var/www/apps/theapp/releases/20070822204440)
** [out :: site.com] setting up rails trunk
** [out :: site.com] mkdir -p …/…/shared/rails/trunk/railties
** [out :: site.com] rake aborted!
** [out :: site.com] Permission denied - …/…/shared/rails
I ssh’d in to check the permissions:
[email protected]:/var/www/apps/theapp$ ls -l
lrwxrwxrwx 1 deploy users 44 Aug 21 17:32 current ->
drwxrwxr-x 75 deploy deploy 4096 Aug 22 20:46 releases
-rw-rw-rw- 1 deploy users 3273 Aug 22 20:46 revisions.log
drwxrwxr-x 6 root app_theapp 4096 Jun 11 21:20 shared
I’ve run into permissions problems with other apps in the past, and
whenever I try to fix them I end up royally screwing things up - so I
was wondering if anyone has run into this problem before and could
suggest a fix.
I’m also open to any suggestions on other ways to automatically deploy
to edge without exporting the entire rails source on each deploy.