Start Application on boot Ubuntu

I am trying to make my application (OpenProject) starting with the
system boot, but to test the script as root, returns me the error:

/usr/bin/env:ruby: No such file or directory.

My script is like this:

su -c openproject “bundle exec rails server”

Someone help?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs