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

Task :environment not valid any longer #583

Closed
kamk opened this issue Oct 11, 2017 · 2 comments
Closed

Task :environment not valid any longer #583

kamk opened this issue Oct 11, 2017 · 2 comments

Comments

@kamk
Copy link

@kamk kamk commented Oct 11, 2017

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

This comment has been minimized.

Copy link
Member

@d4be4st d4be4st commented Oct 13, 2017

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 :)

@d4be4st d4be4st closed this Oct 13, 2017
@Nekromancer

This comment has been minimized.

Copy link

@Nekromancer Nekromancer commented Jul 19, 2018

I think documentation should reflect :environment removal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.