0

Before implementation Mina on server, I called it with:

rails console

now I get:

-bash: rails: command not found

How can I call it now?

2 Answers2

1

Try this out

mina console

Visit

typing 'rails console' doesn't start? or
visit https://github.com/mina-deploy/mina/issues/279 for issue in MINA

Community
  • 1
  • 1
Vaibhav Dhoke
  • 459
  • 6
  • 14
0

I'd the same problem and got:

bash: bundle: command not found
-----> Loading rbenv

rbenv is loading after the command was executed. So, I've created new task to ruan rails console and load rbenv before it.

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

task rc: :environment do
  invoke :'console'
end

mina rc to launch rails console

Alex Kojin
  • 5,044
  • 2
  • 29
  • 31