diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2014-12-10 22:12:52 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2014-12-10 22:12:52 +0100 |
commit | 0c5df5368e7e73d1e4e2bb7e0ae312c1c5113626 (patch) | |
tree | b0a043604ee0bc8526084edadc4111bd4e7e8564 /config | |
parent | e49b8c0b0e58e8cd50d1675473ff4bc737b068ed (diff) | |
download | hmnoweb-0c5df5368e7e73d1e4e2bb7e0ae312c1c5113626.tar.gz hmnoweb-0c5df5368e7e73d1e4e2bb7e0ae312c1c5113626.tar.bz2 hmnoweb-0c5df5368e7e73d1e4e2bb7e0ae312c1c5113626.zip |
Upgrade to Capistrano 3.3.4 and use capistrano-passenger gem.
This also moves us back to stable capistrano deploys.
Diffstat (limited to 'config')
-rw-r--r-- | config/deploy.rb.example | 26 |
1 files changed, 1 insertions, 25 deletions
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 |