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

Can't deploy to multiple machines after update #590

Open
NicosKaralis opened this issue Nov 15, 2017 · 1 comment
Open

Can't deploy to multiple machines after update #590

NicosKaralis opened this issue Nov 15, 2017 · 1 comment
Labels

Comments

@NicosKaralis
Copy link

I have a deploy:all that invokes all stages (mina-multistage plugin) and invokes :deploy for each stage that no longer works

task :'deploy:all' do
  run(:local) do
    comment %{Deploying on all machines}
    comment %{Stages: #{fetch(:stages, ['No stages']).join(', ')}}
  end
  fetch(:stages, []).each do |stage|
    invoke stage
    comment %{Deploying #{stage} @ #{fetch(:domain, 'No domain')}}
    invoke :deploy
    run!
  end
end

This worked fine before on version 1.0.6, but now on version 1.2.2 it gives me this error:

! Can't use run block inside another run block. /Users/nicoskaralis/.rvm/gems/ruby-2.4.2@server/gems/rake-12.2.1/lib/rake/task.rb:251:inblock in execute'`

And I can also see that the :local block is being called before each deploy call

Am I doing something wrong? How can I update my code?

@d4be4st
Copy link
Member

d4be4st commented Jan 26, 2018

Will have to take a look at mina-multistage plugin but it looks like a bug

@d4be4st d4be4st added the bug label Jan 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants