X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=config%2Fdeploy-sample.rb;h=65627e22b8f5c8848b9c2a20f5f11b66cc524aed;hb=34303fd9cbaa54504acea104ce263a066b4de080;hp=a1b6fd1a92a482aba6cd3760362563a676a2db00;hpb=f3b1919ff9e58360241f917ad43e3b38dbdbd6f8;p=feedcatcher.git 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