opensourcechris | 22 May 21:03
Picon

Err or during cap deploy:update

I can not find what is wrong. I have tried to change the passwords
then try again with no luck. This is the error message I am recieving.

  * executing `deploy:update_code'
    executing locally: "git ls-remote https://chrisgogreen-9UaJU3cA/F/QT0dZR+AlfA <at> public.gmane.org/chrisgogreen/deckchainrails.git
HEAD"
Password for 'https://chrisgogreen-9UaJU3cA/F/QT0dZR+AlfA <at> public.gmane.org':
    command finished in 10205ms
  * executing "git clone -q https://chrisgogreen-9UaJU3cA/F/QT0dZR+AlfA <at> public.gmane.org/chrisgogreen/deckchainrails.git
/home/deployer/public/deckchain.com/public/deckchainrails/releases/
20120522190033 && cd /home/deployer/public/deckchain.
com/public/deckchainrails/releases/20120522190033 && git checkout -q -
b deploy 97cb1b474fa60f164155242a4beb96fb906f8906 && (echo
97cb1b474fa60f164155242a4beb96fb906f8906 > /home/deployer/public/
deckchain.com/publ
ic/deckchainrails/releases/20120522190033/REVISION)"
    servers: ["66.228.43.38"]
Password:
    [66.228.43.38] executing command
 ** [66.228.43.38 :: err] Password:
Password:

Please any help will be appreciated.

--

-- 
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capistrano@...
* To unsubscribe from this group, send email to
capistrano+unsubscribe@... For more options, visit this
group at http://groups.google.com/group/capistrano?hl=en
(Continue reading)

Ramsés López | 22 May 22:28
Picon

Rails App doesn't find gems after deploy

Hello all,

I'm trying to implement capistrano to deploy from my workstation to another server. I followed the instructions from 2.x-From-The-Beginning, and I configured my apache server according to this serverfault answer.

However, when I use capistrano to transport it to the other server, the rails app doesn't seems to find methods containen in gems, like paginate from will_paginate. If I remove the references to that gem, then rails will complain about not finding some other method of another gem, like the ones from blueprint-rails.

I'm guessing that it could be some problem with the config of my environment, or maybe in my capistrano config, but right now I'm out of ideas, and don't know what else to check. Any ideas?

Some info that might help:

Ruby:

$ rvm list

rvm rubies


   ruby-1.9.2-p290 [ i686 ]
=* ruby-1.9.3-p194 [ i686 ]

Capistrano:
$ cap --version
Capistrano v2.12.0

My deploy.rb
http://pastie.org/3951922

My Capfile
http://pastie.org/3951928

Thanks! any suggestions will be appreciated


--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capistrano-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
* To unsubscribe from this group, send email to capistrano+unsubscribe <at> googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
赵 耀 | 22 May 09:52
Picon
Gravatar

How can I make `run` or `download` methods to always use the :roles I declared in the code?

Hi everyone,

When I tried to do this:
1. remove the target server from my nginx upstream 
2. reload nginx
3. restart my app server #
4. add back to nginx upstream
5. reload nginx.

 Because I declared a ROLES or HOSTS env, all commands are running at the app server. The env hide the :roles =>
:nginx I passed into the `run` `download` methods.
For some reasons I can not declare :roles => on the task, which means I must use the env vars to declare which
host I want to deploy.
How can do this?

Best regards.

--

-- 
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capistrano@...
* To unsubscribe from this group, send email to
capistrano+unsubscribe@... For more options, visit this
group at http://groups.google.com/group/capistrano?hl=en

Benjamin Moses Lieb | 22 May 02:57

deploying a branch

I've read that with -s I can deploy a specific branch. I tried this and it failed. The branch is only on my local dev machine. Does it also have to be on the remote server?

(This post is not cross-posted anywhere)

--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capistrano-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
* To unsubscribe from this group, send email to capistrano+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
Benjamin Moses Lieb | 22 May 02:40

how deploy a branch

I've read that with -s I can deploy a specific branch. I tried this and it failed. The branch is only on my local dev machine. Does it also have to be on the remote server?

--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capistrano-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
* To unsubscribe from this group, send email to capistrano+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
赵 耀 | 21 May 12:13
Picon
Gravatar

What's the difference between ssh remote command and capistrano run?

I use capistrano to deploy my java app which is deployed to a resin server.
When I use 
run "/path/to/resin/bin/httpd.sh restart"
I just got logs said the server was shuting down, but the server was never started.

But when I use 
ssh $host "/path/to/resin/bin/httpd.sh restart"
from command line, it works just fine.

So what is the difference?

Best regards.

--

-- 
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capistrano@...
* To unsubscribe from this group, send email to
capistrano+unsubscribe@... For more options, visit this
group at http://groups.google.com/group/capistrano?hl=en

Benjamin Moses Lieb | 21 May 05:07

I'm getting this error when running this capistrano task (my own - cap deploy:show_pointers):

I'm getting this error when running this capistrano task (my own - cap deploy:show_pointers):

  * executing `deploy:show_pointers'
  * executing "cd /home/mydomain/public_html/site_folders/rails/current; rake app:show_pointers"
    servers: ["mydomain.net"]
    [mydomain.net] executing command
 ** [out :: mydomain.net] (in /home/mydomain/public_html/site_folders/rails/releases/20120521025150)
 ** [out :: mydomain.net] Could not find rake-0.9.2 in any of the sources
 ** [out :: mydomain.net] Try running `
bundle install`.
    command finished in 1584ms
failed: "sh -c 'cd /home/mydomain/public_html/site_folders/rails/current; rake app:show_pointers'" on mydomain.net

However when I run

sh -c 'cd /home/mydomain/public_html/site_folders/rails/current; rake app:show_pointers

manually from the same dir that capistrano logs into, it works. I have capistrano set to NOT USE sudo, so that shouldn't be the issue, but it sounds like it might be, since the above command fails with sudo. I think this is a user issue, or maybe an environment var issue. Or I'm not sure what.

Any suggestsions. This is a task that is already a rake task, but it will help me not to have to log into the server every time I run it (and about 10 more like it).

Appreciate any help on this.

--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capistrano-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
* To unsubscribe from this group, send email to capistrano+unsubscribe <at> googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
jp | 21 May 02:32
Picon

--deployment flag requires a Gemfile.lock

When I try to run cap deploy:cold I get this error message.

error:

The --deployment flag requires a Gemfile.lock. Please make sure you
have checked your Gemfile.lock into version control before deploying.

Please note:   I am not using rails or anything specific. I simply run
capify .  & provided url for server & subversion repo.

I just want my files to be uploaded to the server.

--

-- 
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capistrano@...
* To unsubscribe from this group, send email to
capistrano+unsubscribe@... For more options, visit this
group at http://groups.google.com/group/capistrano?hl=en

jp | 21 May 02:27
Picon

error: no-auth-cache -rHEAD returned status code pid 65009 exit 1

When I try to execute $ cap deploy:cold I get the error.   --no-auth-
cache  -rHEAD returned status code pid 65009 exit 1

Command svn info http://corporation.com:1080/SVNROOT/LOCALIZATION/branches/location_of_my_directory/jay/
--username parteek --password --mypassword-- --no-auth-cache  -rHEAD
returned status code pid 65009 exit 1

--

-- 
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capistrano@...
* To unsubscribe from this group, send email to
capistrano+unsubscribe@... For more options, visit this
group at http://groups.google.com/group/capistrano?hl=en

Nick Hoffman | 11 May 17:24
Favicon
Gravatar

Is Capistrano needed in a Rails app's Gemfile?

Hi guys. Is it necessary to put Capistrano in a Rails app's Gemfile, or at least, in the "development" group in the Gemfile?


If not, are there any benefits to doing so?

Thanks,
Nick

--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capistrano-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
* To unsubscribe from this group, send email to capistrano+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
sq1020 | 25 Apr 01:38
Picon

controlling order of execution of tasks in one namespace

Hi everyone,

I'm new to Capistrano and I was wondering how you can control the
order of execution of tasks in a certain name space.

For example, I have some extra tasks in my deploy namespace.  I wanted
deploy:bundle and deploy:assets to run before deploy:restart so I
added these lines

after 'deploy:update_code', 'deploy:bundle'
after 'deploy:bundle', 'deploy:assets'
after 'deploy:assets', 'deploy:restart'

I'm not sure if this how you're supposed to do it.  Please let me know
if you guys have any tips for me!

namespace :deploy do
   task :start do ; end
   task :stop do ; end
   task :restart, :roles => :app, :except => { :no_release => true }
do
     run "touch #{current_path}/tmp/restart.txt"
   end

  task :bundle do
    run "cd #{current_path} && bundle install"
  end

  task :assets do
     run "cd #{current_path} && bundle exec rake assets:precompile"
  end

 end

after 'deploy:update_code', 'deploy:bundle'
after 'deploy:bundle', 'deploy:assets'
after 'deploy:assets', 'deploy:restart'

--

-- 
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capistrano@...
* To unsubscribe from this group, send email to
capistrano+unsubscribe@... For more options, visit this
group at http://groups.google.com/group/capistrano?hl=en


Gmane