You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I have a
deploy:all
that invokes all stages (mina-multistage plugin) and invokes:deploy
for each stage that no longer worksThis 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:in
block in execute'`And I can also see that the
:local
block is being called before each deploy callAm I doing something wrong? How can I update my code?
The text was updated successfully, but these errors were encountered: