diff --git a/config/deploy/staging.rb b/config/deploy/staging.rb index 5925388ee..ce4f8979f 100644 --- a/config/deploy/staging.rb +++ b/config/deploy/staging.rb @@ -1,8 +1,7 @@ set :stage, :staging set :branch, "devise_fix" -server 'new-web.pp-staging.linode.protectedplanet.net', user: 'wcmc', roles: %w{app db web} - +server 'new-web.pp-staging.linode.protectedplanet.net', roles: %w{web app db} set :application, "protectedplanet" set :server_name, "protectedplanet" diff --git a/lib/capistrano/tasks/deploy.rake b/lib/capistrano/tasks/deploy.rake deleted file mode 100644 index 1590f9501..000000000 --- a/lib/capistrano/tasks/deploy.rake +++ /dev/null @@ -1,57 +0,0 @@ -namespace :deploy do - desc 'Restart sidekiq' - task :restart do - on roles(:util) do - execute 'sudo service sidekiq stop' - execute 'sudo service sidekiq start' - end - end - after :publishing, :restart - - after :restart, :clear_cache do - on roles(:web), in: :groups, limit: 3, wait: 10 do - within release_path do - with :rails_env => fetch(:stage) do - execute :rake, 'cache:clear' - end - end - end - end -end - -namespace :maintenance do - desc 'Turn on maintenance mode' - task :on do - on roles(:web), in: :sequence, wait: 5 do - within current_path do - with :rails_env => fetch(:stage) do - execute :rake, 'maintenance:start allowed_paths="/admin/maintenance"' - end - end - end - end - - desc 'Turn off maintenance mode' - task :off do - on roles(:web), in: :sequence, wait: 5 do - within current_path do - with :rails_env => fetch(:stage) do - execute :rake, 'maintenance:end' - end - end - end - end -end - -namespace :git do - desc 'Copy repo to releases' - task create_release: :'git:update' do - on roles([:web, :util]) do - with fetch(:git_environmental_variables) do - within repo_path do - execute :git, :clone, '-b', fetch(:branch), '--recursive', '.', release_path - end - end - end - end -end