-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
namespace :deploy do
# ...
task :migrate_db do
if role? :db
Dir.chdir(RAILS_ROOT)
Rake::Task['db:migrate'].invoke
end
end
task :post_deploy => [ :environment, :create_shared_private, :migrate_db, 'sass:update', :build_assets, 'mod_rails:restart', :notify_hoptoad ]
end
When the the current post deploy hook is actually :migrate_db, I see the following in my terminal:
+ cd /var/www/optimis
+ '[' -e /var/www/optimis/Rakefile ']'
++ RAILS_ENV=production
++ rake -P
++ grep deploy:post_deploy
+ [[ rake deploy:post_deploy != '' ]]
+ RAILS_ENV=production
+ rake --trace deploy:post_deploy to=production
(in /var/www/optimis)
** Invoke deploy:post_deploy (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke deploy:create_shared_private (first_time)
** Execute deploy:create_shared_private
Metadata
Metadata
Assignees
Labels
No labels