mina-deploy / mina

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

Failed with status 1 #530

Closed wenesk closed 7 years ago

wenesk commented 7 years ago

Hi,

I've used mina for 2 years and working great. Yesterday I added a new server (in a same deploy.rb file) but stuck with this error:

Command failed.
Failed with status 1 (1)

I checked with -S command and looks like it about rvm stuff and I event tried commands from simulation directly and it works.

my task environments:

task :environment do
  invoke :'rvm:use[ruby-2.3.1@default]'
end

commands from -S:

source $HOME/.rvm/scripts/rvm
rvm use "ruby-2.3.1@default" --create || exit 1 

Can someone guide me what should i check on the server?

thanks

note: I use mina v0.3.6

wenesk commented 7 years ago

Update: I use the latest mina 1.0.6 and use the new deploy.rb and it works. But then I need to refactor all my old deploy.rb to match with the new mina config.

Is there any workaround to solve my previous problem (v0.3.6) without upgrading to v1.0.6?

wenesk commented 7 years ago

Update: Updating mina to v0.3.8 is enough.