Sha256: 0ebc8f13043fa90aa29171d8752cace76cb43df8beb1b9f321f786eff1cc3294
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
#!/usr/bin/env cap # loads dsl, sets up stages require 'capistrano/setup' # provides remote execution of arbitrary commands require 'capistrano/console' # includes default deployment tasks # remove to start completely from scratch require 'capistrano/deploy' # Includes tasks from other gems included in your Gemfile # # For documentation on these, see for example: # # https://github.com/capistrano/bundler # https://github.com/capistrano/rails/tree/master/assets # https://github.com/capistrano/rails/tree/master/migrations # # require 'capistrano/bundler' # require 'capistrano/rails/assets' # require 'capistrano/rails/migrations' # require 'capistrano/heroku' # Loads custom tasks from lib/capistrano/tasks if you have any defined. # Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r } namespace :deploy do desc 'Restart application' task :restart do on roles(:app), in: :sequence, wait: 5 do # end end after :restart, :clear_cache do on roles(:web), in: :groups, limit: 3, wait: 10 do # end end after :finishing, 'deploy:cleanup' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-3.0.0.pre | lib/capistrano/templates/Capfile |