-
Notifications
You must be signed in to change notification settings - Fork 489
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
Mina 1.0.2+ error "bash: bundle: command not found" when using mina console
#476
Comments
mina console
I managed to reproduce it. Have a logical error in my code. Will try to fix it. |
@d4be4st so how to deal with this error? I looks like in all these tasks the environment task is not invoked. |
Encountered the same error here. |
Created #492 to address this |
Is it ok that environment would be invoked twice, in Mina::DSL.run and in run_commands task? |
You are correct @molfar Need to add some specs to this but #aaf50c5 should fix this |
That does not seems to fix (for me at least). I use rbenv and my gems shims are not anywhere in my task :environment do
invoke 'rbenv:load'
command %[ export PATH="$PATH:$HOME/.rbenv/shims" ]
end if I override default console task by prepending environment load, my rails console task works: task console: :environment do
set :execution_mode, :exec
in_path fetch(:current_path).to_s do
command %{#{fetch(:rails)} console}
end
end But when I quit the console, another one is launched... o_O |
Mina 1.0.6 with rbenv still not working... |
This is still there. task :run_commands do
if commands.run_default?
invoke :environment
commands.run(:remote)
end
end It appears that UPDATE: now I get what this means and why this is wrong: The Therefore this is merely appending the |
Happy New Year! And... any updates on this? |
@xikaos 1.0.6 not work's for me |
Hi. I have same problem on my vagrant Ubuntu machine ().
|
having same issue |
@d4be4st Could we reopen this issue? Seems like the bug still persists. |
I having same issue. |
I gave up on |
Having same issue. mina 1.0.6 with rvm. Currently I just add the below codes in # Fix https://github.com/mina-deploy/mina/issues/476
task :console => :environment do
end |
@Martin288 or just |
I think everything should work out of the box, without any manipulations |
Create #551 to fix this. |
Hi
I am using Mina version 1.0.3 in a Rails project. When I try to connect to the production console using
mina console
I get the following error:bash: bundle: command not found
. I'm using rbenv on the server where the app is deployed, the:environment
task looks as follows:While
mina ssh
,mina log
andmina deploy
work flawlessly,mina console
,mina rake
and the likes all produce the above mentioned error.Am I doing something wrong or is this a bug?
The text was updated successfully, but these errors were encountered: