Josh,
If you don't have a RAILS_ROOT/tmp directory in subversion you'll
need to add a task that will make this directory for you.
Best,
Dave
desc "Make tmp directories"
task :make_tmp_directories, :roles => [ :app, :db, :web ] do
run <<-CMD
mkdir -p #{release_path}/tmp/sessions/ &&
mkdir -p #{release_path}/tmp/cache/ &&
mkdir -p #{release_path}/tmp/pids/ &&
mkdir -p #{release_path}/tmp/sockets/ &&
chmod g+w #{release_path}/tmp/*
CMD
end
On 6 Jun 2007, at 01:44, joshuajnoble wrote:
>
> Hi,
>
> I'm so close to my first deploy after going through three long nights
> stretched out over a week: I'm running Capistrano 1.4.1 and deprec
> 1.7.1 and I've gotten to the final step (I think):
>
> cap deploy_with_migrations
>
> which is giving me the following error:
>
> * executing "sudo chgrp -R deploy /var/www/apps/mpg/current/tmp /
> var/
> www/apps/mpg/shared"
> servers: ["deploy@<server>"]
> [deploy@<server>] executing command
> ** [out :: deploy@<server>] chgrp: cannot access `/var/www/apps/mpg/
> current/tmp': No such file or directory
> command finished
> command "sudo chgrp -R deploy /var/www/apps/mpg/current/tmp /var/www/
> apps/mpg/shared" failed on deploy@<server>
>
> I went and created a file tmp in current and set it's permissions to
> 777 just to make sure it was in fact there and accessible, but no
> love. I'm on slicehost and their tutorials claim that this error
> should be fixed by updating to Deprec > 1.6, but that's not my case.
> Should I be trying something other than "cap deploy_with_migrations"
> or is there a common problem that I might be messing up? Thanks for
> any tips!
>
> Josh
>
>
> >
---
David Rice
+44 (0)78 708 12996
http://www.davidjrice.co.uk
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---