I am attempting to use Capistrano to deploy my rails app.  My
development machine and the deployment machine are both running Ubuntu.
The problems I seem to be having are related to Ubuntu's sudo
policies.  I have created the appropriate user on both machines, but am
still having the following problems:

1.  the :setup task was failing on the mkdir, so I modified my
standard.rb like this:

task :setup, :except => { :no_release => true } do
 run <<-CMD
   sudo mkdir -p -m 775 #{deploy_to} #{releases_path} #{shared_path}
#{shared_path}/system &&
   sudo mkdir -p -m 777 #{shared_path}/log &&
   sudo mkdir -p -m 777 #{shared_path}/pids
 CMD
end

2. cap cold_deploy seems to work until it gets to the svn co command.
That fails with the following error:
** [out :: MYSERVER] svn: Can't make directory
'/var/www/MyAppName/releases/20070115185748': Permission denied

If I run the svn co command manually on my deployment server, I get the
same error.  However, if I sudo svn co ..., things work correctly.
What do I need to do, to get svn to be able to create the directories
properly?  Do I need to modify the source to sudo the checkout command?

I'm sure I'm missing a logical solution to both problems, but can't
seem to figure it out.  I have googled extensively, but have been
unable to find any solutions.

Thanks,

Steve


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to