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 On Wednesday, December 11, 2013 4:46:59 PM UTC-5, Lee Hambley wrote: > > 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. > On 11 Dec 2013 22:46, "Red Hot Chili Pepper" > <[email protected]<javascript:>> > wrote: > >> 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, "[email protected]: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 >> >> -- >> 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] <javascript:>. >> 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. >> > -- 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]. To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/3e49e0a7-7589-4dbc-a60a-c692817c7b2a%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
