Where can I find 3.x documentation on common variables that can be "set"

220 views
Skip to first unread message

Red Hot Chili Pepper

unread,
Dec 11, 2013, 4:12:13 PM12/11/13
to capis...@googlegroups.com
I'm using capistrano 3.x and I am unable to find documentation on common variables that can be set.  I presume my deploy script has an amalgam of 2.x and 3.x syntax but was unable to find a definitive, complete list of all these variables that can be set.

I just learned that ':repository' in 2.x is now 'repo_url' in 3.x.  Where can I go to find documentation that can help me learn all these important variables?

set :stages, %w(ui-staging ui-prod)
set :default_stage, "ui-staging"

set :application, "ui"
set :deploy_to, '/var/www/'

set :scm, :git
set :repo_url,  "g...@github.com:myrepo/myrepo.git"
set :branch, "master"

set :use_sudo, false
set :user, 'deploy'

set :keep_releases, 2
after "deploy", "deploy:cleanup"

For example my cleanup script is not working, I presume this is because I'm using 2.x syntax

Lee Hambley

unread,
Dec 11, 2013, 4:46:59 PM12/11/13
to capistrano

It doesn't exist, because the only ones are in the cap3 generated code, or documented by the plugins that rely on them.

Sent from my Nexus 4.

--
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 capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/c640dd70-98bb-4cfd-95a3-9049047018e1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Red Hot Chili Pepper

unread,
Dec 11, 2013, 5:21:13 PM12/11/13
to capis...@googlegroups.com
I see thanks.  Is there any reason why the cleanup is not working?

set :keep_releases, 2
after "deploy", "deploy:cleanup"

At the end of my deploy I get the following message

Don't know how to build task 'deploy:restart'
/var/lib/gems/1.9.1/gems/capistrano-3.0.1/lib/capistrano/dsl.rb:14:in `invoke'
/var/lib/gems/1.9.1/gems/capistrano-3.0.1/lib/capistrano/tasks/deploy.rake:18:in `block (2 levels) in <top (required)>'
/var/lib/gems/1.9.1/gems/capistrano-3.0.1/lib/capistrano/dsl.rb:14:in `invoke'
/var/lib/gems/1.9.1/gems/capistrano-3.0.1/lib/capistrano/tasks/framework.rake:64:in `block (2 levels) in <top (required)>'
/var/lib/gems/1.9.1/gems/capistrano-3.0.1/lib/capistrano/tasks/framework.rake:60:in `each'
/var/lib/gems/1.9.1/gems/capistrano-3.0.1/lib/capistrano/tasks/framework.rake:60:in `block in <top (required)>'
/var/lib/gems/1.9.1/gems/capistrano-3.0.1/lib/capistrano/application.rb:12:in `run'
/var/lib/gems/1.9.1/gems/capistrano-3.0.1/bin/cap:3:in `<top (required)>'
Tasks: TOP => deploy:publishing

Red Hot Chili Pepper

unread,
Dec 11, 2013, 5:37:55 PM12/11/13
to capis...@googlegroups.com
Nevermind I figured out my reply to your reply, thanks Lee.


On Wednesday, December 11, 2013 4:46:59 PM UTC-5, Lee Hambley wrote:
Reply all
Reply to author
Forward
0 new messages