diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-10-15 09:12:01 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-10-15 09:12:01 +0200 |
commit | 93c9bf9adc717b7e5f2bb96ec450be8245889ded (patch) | |
tree | 35d1fcc3563fed3f9ed94f1f704585d1dc5e6010 /config/deploy.rb | |
parent | 35d3ed2b09b3eff694d285a57d3ff911ef3f0ec2 (diff) | |
download | norsk-urskog-registrations-93c9bf9adc717b7e5f2bb96ec450be8245889ded.tar.gz norsk-urskog-registrations-93c9bf9adc717b7e5f2bb96ec450be8245889ded.tar.bz2 norsk-urskog-registrations-93c9bf9adc717b7e5f2bb96ec450be8245889ded.zip |
Add capistrano for deployment
Diffstat (limited to 'config/deploy.rb')
-rw-r--r-- | config/deploy.rb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/config/deploy.rb b/config/deploy.rb new file mode 100644 index 0000000..d4cae8c --- /dev/null +++ b/config/deploy.rb @@ -0,0 +1,33 @@ +# config valid only for current version of Capistrano +lock '3.4.0' + +set :application, 'regform' +set :repo_url, 'git@example.com:me/my_repo.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 |