From 6351f5cd96c1870b654bb22632dc3a43d09890d2 Mon Sep 17 00:00:00 2001 From: renansoares Date: Wed, 30 Mar 2016 17:24:55 -0300 Subject: [PATCH] changing in new deploy methods --- config/deploy.rb | 2 ++ config/deploy.rb.1 | 58 ---------------------------------------------------------- 2 files changed, 2 insertions(+), 58 deletions(-) delete mode 100644 config/deploy.rb.1 diff --git a/config/deploy.rb b/config/deploy.rb index 733be8c..17032ee 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -2,6 +2,8 @@ # config valid only for Capistrano 3.1 lock '3.2.1' +server '150.165.204.80', port: 22, roles: [:web, :app, :db], primary: true + set :application, 'vlibras-web2' set :repo_url, 'git@git.lavid.ufpb.br:vlibras-web2.git' set :application, 'vlibras-web2' diff --git a/config/deploy.rb.1 b/config/deploy.rb.1 deleted file mode 100644 index 422e82e..0000000 --- a/config/deploy.rb.1 +++ /dev/null @@ -1,58 +0,0 @@ -# config valid only for Capistrano 3.1 -lock '3.2.1' - -set :application, 'my_app_name' -set :repo_url, 'git@example.com:me/my_repo.git' - -# Default branch is :master -# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call - -# Default deploy_to directory is /var/www/my_app -# set :deploy_to, '/var/www/my_app' - -# Default value for :scm is :git -# set :scm, :git - -# Default value for :format is :pretty -# set :format, :pretty - -# Default value for :log_level is :debug -# set :log_level, :debug - -# Default value for :pty is false -# set :pty, true - -# Default value for :linked_files is [] -# set :linked_files, %w{config/database.yml} - -# Default value for linked_dirs is [] -# set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system} - -# Default value for default_env is {} -# set :default_env, { path: "/opt/ruby/bin:$PATH" } - -# Default value for keep_releases is 5 -# set :keep_releases, 5 - -namespace :deploy do - - 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 -- libgit2 0.21.2