summaryrefslogblamecommitdiffstats
path: root/config/deploy.rb
blob: 0502fb5cb0167dceba931a066d8ff73821794a60 (plain) (tree)
1
2
3
4
5



                                                     
                                                                          



























                                                                                                                                 
# config valid only for current version of Capistrano
lock '3.4.0'

set :application, 'regform'
set :repo_url, 'https://github.com/snake66/norsk-urskog-registrations.git'
set :passenger_restart_with_touch, true
set :rvm_ruby_version, '2.2.3'
set :deploy_to, '/usr/local/www/norsk-urskog/registration'

# Default value for :linked_files is []
# set :linked_files, fetch(:linked_files, []).push('config/database.yml', 'config/secrets.yml')

# Default value for linked_dirs is []
# set :linked_dirs, fetch(:linked_dirs, []).push('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

  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