more capistrano changes
This commit is contained in:
@@ -19,15 +19,5 @@ set :bundle_without, %w{development test}.join(' ')
|
||||
set :linked_dirs, fetch(:linked_dirs, []).push('bin', 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system')
|
||||
|
||||
namespace :deploy do
|
||||
desc "Make sure local git is in sync with remote."
|
||||
task :check_revision, roles: :web do
|
||||
unless `git rev-parse HEAD` == `git rev-parse origin/master`
|
||||
puts "WARNING: HEAD is not the same as origin/master"
|
||||
puts "Run `git push` to sync changes."
|
||||
exit
|
||||
end
|
||||
end
|
||||
before "deploy", "deploy:check_revision"
|
||||
|
||||
after :publishing, :restart
|
||||
end
|
||||
Reference in New Issue
Block a user