flogic / whiskey_disk

Whiskey Disk: embarrassingly fast deployments.

Home Page:https://www.pivotaltracker.com/projects/202125/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wd misreports the current deployment hook

ajsharp opened this issue · comments

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

Presumably this is buffering of STDOUT at some stage in the pipeline (hopefully the system() call inside WhiskeyDisk).

Saving this link for reference:

http://www.ruby-forum.com/topic/152548

This should be fixed, as of 0.6.16.

NICE.

Sorry, dude, I closed this issue by mistake! The buffering is still an issue. :-/