I need to run a .rb file for maintenance purposes in my application, and I am trying to run the following command in the cron:
cd /home/username/app_name/current && ruby script/runner script/script_file.rb
and I get the following error: /bin/sh: ruby: command not found
I have alrready read a couple of posts, so I included the #!/usr/local/bin/ruby shebang line at the top in the runner script but its still not working.
What can I do?