From 1d77f6f27bb9ab69e9e3e6453b383e4b01e51127 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 8 Nov 2014 21:58:41 +0100 Subject: Update capistrano deploy script. Make sure we link in the proper config and the public/system directory from the shared directory. --- config/deploy.rb.example | 42 +++++++++--------------------------------- 1 file changed, 9 insertions(+), 33 deletions(-) (limited to 'config') diff --git a/config/deploy.rb.example b/config/deploy.rb.example index dd8b2e7..f08e859 100644 --- a/config/deploy.rb.example +++ b/config/deploy.rb.example @@ -1,46 +1,22 @@ -# config valid only for Capistrano 3.1 lock '3.2.1' -set :application, 'my_app' -set :repo_url, 'git@github.com:snake66/project-limestone.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 +# change this to your application name +set :application, 'hmno' -# 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" } +# change this to your fork +set :repo_url, 'git@github.com:snake66/project-limestone.git' -# Default value for keep_releases is 5 -# set :keep_releases, 5 +set :linked_files, %w{config/initializers/refinery/core.rb config/initializers/secret_token.rb} +set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system} 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') + # Touching this file forces the server to reload + # the application + execute :touch, release_path.join('tmp/restart.txt') end end -- cgit v1.2.3