Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
update deploy scripts further per cbeer PR
Browse files Browse the repository at this point in the history
  • Loading branch information
ndushay committed Jun 23, 2016
1 parent bb44a74 commit c70535d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.
2 changes: 1 addition & 1 deletion Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ require 'capistrano/setup'

# Includes default deployment tasks
require 'capistrano/deploy'
require 'capistrano/one_time_key'

# Includes tasks from other gems included in your Gemfile
#
Expand All @@ -19,6 +18,7 @@ require 'capistrano/rvm'
# require 'capistrano/rbenv'
# require 'capistrano/chruby'
require 'capistrano/bundler'
require 'capistrano/passenger'
require 'capistrano/rails/assets'
require 'capistrano/rails/migrations'

Expand Down
31 changes: 0 additions & 31 deletions config/deploy.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
set :rvm_ruby_string, 'ruby-2.1.4'

set :application, 'was-registrar'
set :repo_url, 'https://github.com/sul-dlss/was-registrar.git'

Expand Down Expand Up @@ -34,32 +32,3 @@

# Default value for keep_releases is 5
# set :keep_releases, 5

namespace :deploy do

task :start do
bundle exec cap setup
end

desc 'Restart application'
task :restart do
on roles(:app), in: :sequence, wait: 5 do
# Your restart mechanism here, for example:
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

after "deploy", "deploy:migrate"

0 comments on commit c70535d

Please sign in to comment.