Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wd misreports the current deployment hook #8

Open
ajsharp opened this issue Mar 2, 2011 · 4 comments
Open

wd misreports the current deployment hook #8

ajsharp opened this issue Mar 2, 2011 · 4 comments

Comments

@ajsharp
Copy link
Contributor

ajsharp commented Mar 2, 2011

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
@rick
Copy link
Member

rick commented Mar 2, 2011

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

@rick
Copy link
Member

rick commented Mar 8, 2011

This should be fixed, as of 0.6.16.

@ajsharp
Copy link
Contributor Author

ajsharp commented Mar 9, 2011

NICE.

@flogic
Copy link
Collaborator

flogic commented Mar 11, 2011

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants