Hi Jamis and thanks for the tip.
Unfortunately all my directories already have a 777-mask (did that out
of frustration) so this shouldn't be the problem.
After a tip in the IRC i changed my deploy.rb to:
set :repository, "file:///var/www/#{application}"
set :deploy_via, :copy
After that, it seemed to be working at first:
cap
deploy:cold
* executing
`deploy:cold'
* executing
`deploy:update'
** transaction:
start
* executing
`deploy:update_code'
executing locally: "git ls-remote file:///var/www/addloops
HEAD"
* getting (via checkout) revision
287dc08148f7ebcc271b82687b3704cf539115de to /tmp/
20090228152031
executing locally: git clone -q file:///var/www/addloops /tmp/
20090228152031 && cd /tmp/20090228152031 && git checkout -q -b deploy
287dc08148f7ebcc271b82687b3704cf539115de
remote: Counting objects: 457,
done.
remote: Compressing objects: 100% (420/420),
done.
remote: Total 457 (delta 64), reused 0 (delta
0)
compressing /tmp/20090228152031 to /tmp/
20090228152031.tar.gz
executing locally: tar czf 20090228152031.tar.gz
20090228152031
servers:
["addloops.com"]
** sftp upload /tmp/20090228152031.tar.gz -> /tmp/
20090228152031.tar.gz
[addloops.com] /tmp/
20090228152031.tar.gz
^C*** [deploy:update_code] rolling
back
* executing "rm -rf /var/www/addloops/releases/20090228152031;
true"
servers:
["addloops.com"]
[addloops.com] executing
command
command finished
But then i get an error message for every file in my project like
this:
*** [err :: addloops.com] 20090228150801/app/views/admins/
search_track_for_edit_form.haml: Cannot
open
*** [err :: addloops.com] : No such file or
directory
*** [err ::
addloops.com]
*** [err :: addloops.com]
tar:
*** [err :: addloops.com] 20090228150801/app/views/admins/
upload_file_form.haml: Cannot
open
*** [err :: addloops.com] : No such file or
directory
*** [err ::
addloops.com]
*** [err :: addloops.com]
tar:
*** [err :: addloops.com] 20090228150801/app/views/registrations:
Cannot
mkdir
*** [err :: addloops.com] : No such file or
directory
*** [err ::
addloops.com]
*** [err :: addloops.com]
tar:
*** [err :: addloops.com] 20090228150801/app/views/registrations/
show_purchases.haml: Cannot
open
*** [err :: addloops.com] : No such file or
directory
*** [err ::
addloops.com]
*** [err :: addloops.com]
tar:
*** [err :: addloops.com] 20090228150801/app/views/registrations/
start.haml: Cannot
open
*** [err :: addloops.com] : No such file or
directory
*** [err ::
addloops.com]
*** [err :: addloops.com]
tar:
*** [err :: addloops.com] 20090228150801/app/views/registrations/
index.haml: Cannot
open
*** [err :: addloops.com] : No such file or
directory
and so on.........
Any more ideas?
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---