Commit 6351f5cd96c1870b654bb22632dc3a43d09890d2

Authored by renansoares
1 parent 0badb02f
Exists in master and in 1 other branch v2

changing in new deploy methods

Showing 2 changed files with 2 additions and 58 deletions   Show diff stats
config/deploy.rb
@@ -2,6 +2,8 @@ @@ -2,6 +2,8 @@
2 # config valid only for Capistrano 3.1 2 # config valid only for Capistrano 3.1
3 lock '3.2.1' 3 lock '3.2.1'
4 4
  5 +server '150.165.204.80', port: 22, roles: [:web, :app, :db], primary: true
  6 +
5 set :application, 'vlibras-web2' 7 set :application, 'vlibras-web2'
6 set :repo_url, 'git@git.lavid.ufpb.br:vlibras-web2.git' 8 set :repo_url, 'git@git.lavid.ufpb.br:vlibras-web2.git'
7 set :application, 'vlibras-web2' 9 set :application, 'vlibras-web2'
config/deploy.rb.1
@@ -1,58 +0,0 @@ @@ -1,58 +0,0 @@
1 -# config valid only for Capistrano 3.1  
2 -lock '3.2.1'  
3 -  
4 -set :application, 'my_app_name'  
5 -set :repo_url, 'git@example.com:me/my_repo.git'  
6 -  
7 -# Default branch is :master  
8 -# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call  
9 -  
10 -# Default deploy_to directory is /var/www/my_app  
11 -# set :deploy_to, '/var/www/my_app'  
12 -  
13 -# Default value for :scm is :git  
14 -# set :scm, :git  
15 -  
16 -# Default value for :format is :pretty  
17 -# set :format, :pretty  
18 -  
19 -# Default value for :log_level is :debug  
20 -# set :log_level, :debug  
21 -  
22 -# Default value for :pty is false  
23 -# set :pty, true  
24 -  
25 -# Default value for :linked_files is []  
26 -# set :linked_files, %w{config/database.yml}  
27 -  
28 -# Default value for linked_dirs is []  
29 -# set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}  
30 -  
31 -# Default value for default_env is {}  
32 -# set :default_env, { path: "/opt/ruby/bin:$PATH" }  
33 -  
34 -# Default value for keep_releases is 5  
35 -# set :keep_releases, 5  
36 -  
37 -namespace :deploy do  
38 -  
39 - desc 'Restart application'  
40 - task :restart do  
41 - on roles(:app), in: :sequence, wait: 5 do  
42 - # Your restart mechanism here, for example:  
43 - # execute :touch, release_path.join('tmp/restart.txt')  
44 - end  
45 - end  
46 -  
47 - after :publishing, :restart  
48 -  
49 - after :restart, :clear_cache do  
50 - on roles(:web), in: :groups, limit: 3, wait: 10 do  
51 - # Here we can do anything such as:  
52 - # within release_path do  
53 - # execute :rake, 'cache:clear'  
54 - # end  
55 - end  
56 - end  
57 -  
58 -end