Skip to content

wd misreports the current deployment hook #8

@ajsharp

Description

@ajsharp
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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions