Very nice trick with the cap deploy -d Big thanks!
My initial problem was with using an older bundler gem version:
/usr/local/rvm/gems/ruby-1.9.
3-p374@global/gems/bundler-1.2.3
To solve that I did a gem uninstall bundler and found the older version.
Having remove that problem this deploy is working.
Almost a happy day. Now I am trying to deploy a new app and using the cap
deploy -d method noted above I was able to narrow down a new failure, same
target server, same dev machine, different app.
The error is from the following:
* 2013-09-19 18:12:24 executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote
[email protected]:DataSimply/MobileAlerts.git master"
command finished in 2135ms
* executing "if [ -d /var/www/DataSimply/shared/cached-copy ]; then cd
/var/www/DataSimply/shared/cached-copy && git fetch -q origin && git fetch
--tags -q origin && git reset -q --hard
7535f2f0fc60797ab775ed518e439b2a59e6dece && git clean -q -d -x -f; else git
clone -q -b master [email protected]:DataSimply/MobileAlerts.git
/var/www/DataSimply/shared/cached-copy && cd
/var/www/DataSimply/shared/cached-copy && git checkout -q -b deploy
7535f2f0fc60797ab775ed518e439b2a59e6dece; fi"
Preparing to execute command: "if [ -d
/var/www/DataSimply/shared/cached-copy ]; then cd
/var/www/DataSimply/shared/cached-copy && git fetch -q origin && git fetch
--tags -q origin && git reset -q --hard
7535f2f0fc60797ab775ed518e439b2a59e6dece && git clean -q -d -x -f; else git
clone -q -b master [email protected]:DataSimply/MobileAlerts.git
/var/www/DataSimply/shared/cached-copy && cd
/var/www/DataSimply/shared/cached-copy && git checkout -q -b deploy
7535f2f0fc60797ab775ed518e439b2a59e6dece; fi"
Specifically the following when executed from the command line on the
target machine:
if [ -d /var/www/DataSimply/shared/cached-copy ]; then cd
/var/www/DataSimply/shared/cached-copy && git fetch -q origin && git fetch
--tags -q origin && git reset -q --hard
7535f2f0fc60797ab775ed518e439b2a59e6dece && git clean -q -d -x -f; else git
clone -q -b master [email protected]:DataSimply/MobileAlerts.git
/var/www/DataSimply/shared/cached-copy && cd
/var/www/DataSimply/shared/cached-copy && git checkout -q -b deploy
7535f2f0fc60797ab775ed518e439b2a59e6dece; fi
Produces the following error:
fatal: reference is not a tree: 7535f2f0fc60797ab775ed518e439b2a59e6dece
On the target machine I have tested the ssh using the following with
success.
ssh -T [email protected]
I have tried the following on my dev machine from the app's directory:
git submodule sync
git submodule update
git reset HEAD --hard
Any ideas or clues?
Thanks,
-Ian
On Thursday, September 19, 2013 7:06:51 AM UTC-7, Jonathan Rochkind wrote:
>
> On 9/18/13 7:42 PM, Ian Morcott wrote:
> > I tried the command... However, as the deploy was rolled back the
> > release was not there. :(
>
> While it can be annoying to do so, one option for debugging this sort of
> thing that I use (with cap2) is the "-d" flag to capistrano. For
> instance: "cap deploy -d".
>
> This will make cap go through it's steps by one by one, at each step
> asking you for confirmation to keep going. Then, one thing you can do
> is pause at the step that's failing, open up another shell, log into the
> same server with the same account and the same environment, and execute
> the thing cap was going to do manually, to figure out exactly why it's
> failing and what needs to change for it to succeed.
>
> (Hmm, this would actually be a useful enhancement to cap "-d" debug; at
> the prompt for a step asking if cap should continue or not, there could
> be an option that drops you into a shell somehow.)
>
--
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/capistrano?hl=en
---
You received this message because you are subscribed to the Google Groups
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.