I have to run a ruby script in rails server. Because my cronjob is written ruby script.
But when I ssh into the server and execute
ruby script.rb
it says
ruby command not found
also I run
ruby -v
to see the version of ruby . But the same error. It seems the ruby is not installed in the server although the server is used to run ruby on rails project.
Should I install ruby in the server or any other solution?
rbenv
command? What is output if you runecho $PATH
? – Yevgeniy Anfilofyev 1 hour ago