Shovel Switchtower deployment


#1

Hello,
Iam trying to use Shovel deployment as explained here
http://nubyonrails.com/pages/shovel. Iam currently using windows as my
development environment and nix to deploy the application. I have
changed
all the dispatch.
files to be executable. but when I run

rake remote_exec ACTION=setup_lighty

it asks for my password and installs lighttpd and other stuff, but
fails on task update_code. Here is my error

C:\radrails\workspace\example\lib\tasks>rake remote_exec
ACTION=setup_lighty
(in C:/radrails/workspace/example)
loading configuration
c:/ruby/lib/ruby/gems/1.8/gems/switchtower-0.10.0/lib/swit
chtower/recipes/standard.rb
loading configuration ./config/deploy.rb
executing task setup_lighty
executing task write_lighty_config_file
executing “if [ ! -d lighttpd/cache/compress ]; then mkdir -p
lighttpd/cache/com
press; fi”
servers: [“host.com”]
Password: abcdefg

processing command
[host.com] executing command
command finished
executing “if [ ! -d var/run ]; then mkdir -p var/run; fi”
servers: [“host.com”]
processing command
[host.com] executing command
command finished
executing “if [ ! -d var/log ]; then mkdir var/log; fi”
servers: [“host.com”]
processing command
[host.com] executing command
command finished
executing “if [ ! -d sites ]; then mkdir sites; fi”
servers: [“host.com”]
processing command
[host.com] executing command
command finished
servers: [“host.com”]
uploading lighttpd/lighttpd.conf
uploading data to host.com:lighttpd/lighttpd.conf
done uploading data to host.com:lighttpd/lighttpd.conf
upload finished
executing task write_lighttpdctrl_script
servers: [“host.com”]
uploading lighttpd/lighttpdctrl
uploading data to host.com:lighttpd/lighttpdctrl
done uploading data to host.com:lighttpd/lighttpdctrl
upload finished
executing task setup
executing “mkdir -p -m 775
/users/home/username/sites/example.com/releases
/users/home/username/sites/example.com/shared/system &&\n mkdir -p
-m
777 /users/home/username/sites/example.com/shared/log”
servers: [“host.com”]
processing command
[host.com] executing command
command finished
executing task deploy
transaction: start
executing task update_code
querying latest revision…
executing “if [[ ! -d
/users/home/username/sites/example.com/releases/2006
0125160511 ]]; then\n svn co -q -r5
http://host.com/svn/camp
uschai.com
/users/home/username/sites/example.com/releases/20060125160511
&&\n echo date +\"%Y-%m-%d %H:%M:%S\" $USER 5
20060125160511 >> /
users/home/username/sites/example.com/revisions.log && chmod 666
/users/ho
me/username/sites/example.com/revisions.log;\n fi”
servers: [“host.com”]
processing command
[host.com] executing command
command finished
executing “rm -rf
/users/home/username/sites/example.com/releases/20060125
160511/log
/users/home/username/sites/example.com/releases/20060125160511/
public/system &&\n ln -nfs
/users/home/username/sites/example.com/share
d/log /users/home/username/sites/example.com/releases/20060125160511/log
&
&\n ln -nfs /users/home/username/sites/example.com/shared/system
/users
/home/username/sites/example.com/releases/20060125160511/public/system”
servers: [“host.com”]
processing command
[host.com] executing command
[out :: host.com] ln: /users/home/username/sites/example.com/releas
es/20060125160511/public/system: No such file or directory
command finished
[update_code] transaction: rollback
[update_code] rolling back
executing “rm -rf
/users/home/username/sites/example.com/releases/20060125
160511”
servers: [“host.com”]
processing command
[host.com] executing command
command finished
rake aborted!
command “rm -rf
/users/home/username/sites/example.com/releases/2006012516
0511/log
/users/home/username/sites/example.com/releases/20060125160511/pu
blic/system &&\\n ln -nfs
/users/home/username/sites/example.com/share
d/log /users/home/username/sites/example.com/releases/20060125160511/log
&
&\\n ln -nfs /users/home/username/sites/example.com/shared/system
/use
rs/home/username/sites/example.com/releases/20060125160511/public/system”
failed on host.com

Any help is appreciated.

Sunder