Start Ruby application on boot

Asked

Viewed 88 times

0

Hello, I have Openproject, a Ruby on Rails application, I want it to start next to the system boot, I put the script to start from Upstart, but when starting the system, I see this error in my log:

/usr/bin/env: ruby: File or directory not found

The script looks like this:

#!/bin/bash

cd /home/openproject/openproject
bundle exec rails server -d >> ~/log

Someone knows what to do?

  • Ruby is the system or vc uses rvm or something similar?

  • Hello Alex, I use the rvm.

1 answer

1


  • Thanks for the help Alex, I used the command: rvm alias create openruby project-2.1.5p273@openproject and returned this: ruby-2.1.5p273 is not installed. Creating alias openproject for ruby-2.1.5p273.... Well, using ruby -v, the installed version is the one specified above, and I didn’t understand this error...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.