projects
/
feedcatcher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f3b1919
)
Updated deploy-sample.rb to link the secret_token.rb file on deployment
author
Neil Smith
<neil.git@njae.me.uk>
Mon, 13 Jan 2014 11:08:18 +0000
(11:08 +0000)
committer
Neil Smith
<neil.git@njae.me.uk>
Mon, 13 Jan 2014 11:08:18 +0000
(11:08 +0000)
config/deploy-sample.rb
patch
|
blob
|
history
diff --git
a/config/deploy-sample.rb
b/config/deploy-sample.rb
index a1b6fd1a92a482aba6cd3760362563a676a2db00..65627e22b8f5c8848b9c2a20f5f11b66cc524aed 100644
(file)
--- 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 :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 :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
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:
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
end
end
@@
-37,4
+40,4
@@
namespace :deploy do
after :finishing, 'deploy:cleanup'
after :finishing, 'deploy:cleanup'
-end
+end
\ No newline at end of file