From 34303fd9cbaa54504acea104ce263a066b4de080 Mon Sep 17 00:00:00 2001 From: Neil Smith Date: Mon, 13 Jan 2014 11:08:18 +0000 Subject: [PATCH] Updated deploy-sample.rb to link the secret_token.rb file on deployment --- config/deploy-sample.rb | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/config/deploy-sample.rb b/config/deploy-sample.rb index a1b6fd1..65627e2 100644 --- a/config/deploy-sample.rb +++ b/config/deploy-sample.rb @@ -2,19 +2,22 @@ set :application, 'my_app_name' set :repo_url, 'git@example.com:me/my_repo.git' # ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp } +set :branch, 'master' -# set :deploy_to, '/var/www/my_app' -# set :scm, :git +set :default_stage, 'production' -# set :format, :pretty +set :deploy_to, '/var/www/my_app' +set :scm, :git + +set :format, :pretty # set :log_level, :debug # set :pty, true -# set :linked_files, %w{config/database.yml} -# set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system} +set :linked_files, %w{config/database.yml config/initializers/secret_token.rb} +set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system} -# set :default_env, { path: "/opt/ruby/bin:$PATH" } -# set :keep_releases, 5 +set :default_env, { path: "/opt/ruby/bin:$PATH" } +set :keep_releases, 5 namespace :deploy do @@ -22,7 +25,7 @@ namespace :deploy do 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') + execute :touch, release_path.join('tmp/restart.txt') end end @@ -37,4 +40,4 @@ namespace :deploy do after :finishing, 'deploy:cleanup' -end +end \ No newline at end of file -- 2.34.1