mina-deploy / mina

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

Task :environment not valid any longer #583

Closed kamk closed 6 years ago

kamk commented 6 years ago

I'm using rbenv and I've noticed it stopped working after an update to some version. I figured out that in deploy.rb it should be:

task :remote_environment do
   invoke :'rbenv:load'
end

It guess it should be corrected in vanilla config file generated by mina init.

However, when I try to run mina -s rake[--tasks] I see the environment, that is rbenv initialization is done after command invocation so I'm getting "Could not find rake-12.1.0 in any of the sources" because it's not using rbenv's version of ruby.

d4be4st commented 6 years ago

https://github.com/mina-deploy/mina/pull/577/files fixes this, i just forgot to push a new release. sorry about that!

1.2.2 has this fix now :)

jakoss commented 5 years ago

I think documentation should reflect :environment removal