On Fri, Mar 24, 2006 at 05:16:06PM -0000, Joshua Schairbaum
wrote:> I had an incredibly difficult time getting this to work correctly and I
> have a couple of comments/questions, after the fact.
>
> When using caching and Capistrano together, how have you set the
> permissions on your RAILS_ROOT/public folder...or have you sent your
> cache data to your document root? I''ve got it working now, but of
> course, it will break the next time I deploy.
I use something like that in my deploy.rb:
task :after_update_code do
run "/bin/chgrp -R www-data #{release_path}/public"
run "/bin/chmod -R g+w #{release_path}/public"
end
after checking out the last version, this changes group ownership of
the public folder to www-data (the group the web server runs as) and
grants group write permissions, so cache files may be written by the
server.
hth,
Jens
--
Jens Kr?mer
jk@jkraemer.net