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
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
after :finishing, 'deploy:cleanup'
-end
+end
\ No newline at end of file