Hello all,
I am attempting to get Capistrano setup and working for the first time.
This is very new to me. I am trying to deploy from a local Git
repository to my shared host.
After running 'cap deploy:setup' and 'cap deploy:check' everything
appears OK. But when I run 'cap deploy' it doesn't seem like any of my
file are getting uploaded. Here is what happens after running 'cap
deploy'. Does anything look weird?
____________________________________________________________
cap deploy
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
executing locally: "git ls-remote . master"
checking for git... yes
* executing "git clone -q .
/home/username/appname/releases/20091216044729 && cd
/home/username/appname/releases/20091216044729 && git checkout -q -b
deploy 8939c285e969a7cdf5a59a86a25ef0c460d15a31 && (echo
8939c285e969a7cdf5a59a86a25ef0c460d15a31 >
/home/username/appname/releases/20091216044729/REVISION)"
servers: ["mydomain.com"]
[mydomain.com] executing command
** [mydomain.com :: err] fatal: failed to open /home/username/./objects
command finished
* executing `deploy:finalize_update'
* executing "chmod -R g+w
/home/username/appname/releases/20091216044729"
servers: ["mydomain.com"]
[mydomain.com] executing command
*** [err :: mydomain.com] chmod: cannot access
`/home/username/appname/releases/20091216044729': No such file or
directory
command finished
* executing "rm -rf /home/username/appname/releases/20091216044729/log
/home/username/appname/releases/20091216044729/public/system
/home/username/appname/releases/20091216044729/tmp/pids &&\\\n
mkdir -p /home/username/appname/releases/20091216044729/public &&\\\n
mkdir -p /home/username/appname/releases/20091216044729/tmp &&\\\n
ln -s /home/username/appname/shared/log
/home/username/appname/releases/20091216044729/log &&\\\n ln -s
/home/username/appname/shared/system
/home/username/appname/releases/20091216044729/public/system &&\\\n
ln -s /home/username/appname/shared/pids
/home/username/appname/releases/20091216044729/tmp/pids"
servers: ["mydomain.com"]
[mydomain.com] executing command
command finished
* executing "find
/home/username/appname/releases/20091216044729/public/images
/home/username/appname/releases/20091216044729/public/stylesheets
/home/username/appname/releases/20091216044729/public/javascripts -exec
touch -t 200912160447.32 {} ';'; true"
servers: ["mydomain.com"]
[mydomain.com] executing command
*** [err :: mydomain.com] find:
/home/username/appname/releases/20091216044729/public/images: No such
file or directory
*** [err :: mydomain.com] find:
/home/username/appname/releases/20091216044729/public/stylesheets: No
such file or directory
*** [err :: mydomain.com] find:
/home/username/appname/releases/20091216044729/public/javascripts: No
such file or directory
command finished
* executing `deploy:symlink'
* executing "rm -f /home/username/appname/current && ln -s
/home/username/appname/releases/20091216044729
/home/username/appname/current"
servers: ["mydomain.com"]
[mydomain.com] executing command
command finished
** transaction: commit
* executing `deploy:restart'
[DEPRECATED] `deploy:restart` is going to be changed to Passenger
mod_rails' method after 2.5.9 - see http://is.gd/2BPeA
* executing "/home/username/appname/current/script/process/reaper"
servers: ["mydomain.com"]
[mydomain.com] executing command
*** [err :: mydomain.com] sh:
/home/username/appname/current/script/process/reaper: No such file or
directory
command finished
____________________________________________________________
Thanks in advance for any help!
on 2009-12-16 06:08
on 2010-01-10 22:28
Matthew Fordham wrote: > Hello all, > > I am attempting to get Capistrano setup and working for the first time. > This is very new to me. I am trying to deploy from a local Git > repository to my shared host. > > After running 'cap deploy:setup' and 'cap deploy:check' everything > appears OK. But when I run 'cap deploy' it doesn't seem like any of my > file are getting uploaded. Here is what happens after running 'cap > deploy'. Does anything look weird? > > ____________________________________________________________ > > cap deploy > /home/username/appname/releases/20091216044729/tmp/pids" > servers: ["mydomain.com"] > [mydomain.com] executing command > command finished > * executing "find > /home/username/appname/releases/20091216044729/public/images > /home/username/appname/releases/20091216044729/public/stylesheets > /home/username/appname/releases/20091216044729/public/javascripts -exec > touch -t 200912160447.32 {} ';'; true" > servers: ["mydomain.com"] > [mydomain.com] executing command > *** [err :: mydomain.com] find: > /home/username/appname/releases/20091216044729/public/images: No such > file or directory > *** [err :: mydomain.com] find: > /home/username/appname/releases/20091216044729/public/stylesheets: No > such file or directory > *** [err :: mydomain.com] find: > /home/username/appname/releases/20091216044729/public/javascripts: No > such file or directory > command finished Hi Matthew, did you get any resolution to this. I'm having exactly the same problem. Stating the obvious perhaps but it looks like the checkout part of the process is not descending into the 'public' folder's sub directories. My workaround (still to be done) is to create a post-checkout event which explicitly grabs the images, javascript, stylesheet directories. I still thinks there's an issue with capistrano (version 2.5.11) on my system. Please let us know if you have found a more adequate fix to this? Peter Mac
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.