Skip to content

Commit

Permalink
Update capistrano deploy configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
Senen committed Dec 19, 2017
1 parent 5fb0278 commit 147d72c
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions config/deploy.rb
Expand Up @@ -7,14 +7,14 @@ def deploysecret(key)
end

set :rails_env, fetch(:stage)
set :rvm_ruby_version, '2.3.5'
#set :rvm_ruby_version, '2.3.5'
set :rvm_type, :user

set :application, 'agendas'
set :server_name, deploysecret(:server_name)
set :full_app_name, fetch(:application)
# If ssh access is restricted, probably you need to use https access
set :repo_url, 'https://github.com/IAMCorporativos/agendas.git'
set :repo_url, 'https://github.com/AyuntamientoMadrid/agendas.git'

set :scm, :git
set :revision, `git rev-parse --short #{fetch(:branch)}`.strip
Expand All @@ -39,18 +39,4 @@ def deploysecret(key)
database.yml
secrets.yml
unicorn.rb
))


namespace :deploy do
# Check right version of deploy branch
before :deploy, "deploy:check_revision"
# Run test aund continue only if passed
# before :deploy, "deploy:run_tests"
# Compile assets locally and then rsync
after 'deploy:symlink:shared', 'deploy:compile_assets_locally'
after :finishing, 'deploy:cleanup'
# Restart unicorn
after 'deploy:publishing', 'deploy:restart'
after 'deploy:restart', 'sidekiq:restart'
end
))

0 comments on commit 147d72c

Please sign in to comment.