mina-deploy / mina

Blazing fast deployer and server automation tool
https://rubygems.org/gems/mina
Other
4.34k stars 491 forks source link

run(:local) command not found when using execution_mode: :system #715

Open reneweteling opened 1 year ago

reneweteling commented 1 year ago

Hey there,

I'm trying to run some code locally but when I use the run local block it always says "not found". This only happens with the execution_mode: :system.

Command

execution_mode: :sytem

task :deploy do
  run(:local) do
    command %{pwd}
  end 
end

Result

root@6483d6840b3a:/myapp# mina -v -f config/deploy.rb preprod deploy
sh: 2: echo \$\ pwd &&
pwd: not found

Env

Mina: 1.2.4 Debian: 10 (docker)