-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
I'm interested in running pre-deploy hooks:
namespace :deploy do
namespace :staging do
task :pre_deploy do
Rake::Task['deploy:web:disable'].invoke if changes?('db/schema.rb') && role?(:web)
end
task :post_deploy do
if changes?('db/schema.rb')
Rake::Task['db:migrate'].invoke if role?(:db)
Rake::Task['depoy:web:enable'].invoke if role?(:web)
end
end
end
endThe pre-deploy hook should run with:
- Previous version checked out
- Newest version available in origin/
- .whiskey_disk-files updated
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels