From 0c5df5368e7e73d1e4e2bb7e0ae312c1c5113626 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Wed, 10 Dec 2014 22:12:52 +0100 Subject: Upgrade to Capistrano 3.3.4 and use capistrano-passenger gem. This also moves us back to stable capistrano deploys. --- config/deploy.rb.example | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'config') diff --git a/config/deploy.rb.example b/config/deploy.rb.example index 51362d5..4f04d26 100644 --- a/config/deploy.rb.example +++ b/config/deploy.rb.example @@ -1,4 +1,4 @@ -lock '3.2.1' +lock '3.3.4' # change this to your application name set :application, 'hmno' @@ -8,27 +8,3 @@ set :repo_url, 'git@github.com:snake66/project-limestone.git' set :linked_files, %w{config/initializers/refinery/core.rb config/initializers/secret_token.rb config/piwik.yml} set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system} - -namespace :deploy do - - desc 'Restart application' - task :restart do - on roles(:app), in: :sequence, wait: 5 do - # Touching this file forces the server to reload - # the application - execute :touch, release_path.join('tmp/restart.txt') - end - end - - after :publishing, :restart - - after :restart, :clear_cache do - on roles(:web), in: :groups, limit: 3, wait: 10 do - # Here we can do anything such as: - # within release_path do - # execute :rake, 'cache:clear' - # end - end - end - -end -- cgit v1.2.3