Launch Ruby application at boot

0
Hello, I have OpenProject, a Ruby on Rails application, I want it to start at the boot of the system, I put the script to start Upstart, but when I start 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

Does anyone know what to do?

    
asked by anonymous 02.06.2015 / 14:45

1 answer

1

Using RVM, you need to create a wrapper.

See how in the documentation: link

    
02.06.2015 / 18:56