Start Application on boot Ubuntu

10 views
Skip to first unread message

Douglas Leonardo

unread,
Jul 2, 2015, 12:47:58 PM7/2/15
to rubyonra...@googlegroups.com
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:

#!/bin/bash
RAILS_ENV="production"
cd/home/openproject/openproject
su -c openproject "bundle exec rails server"

Someone help?

--
Posted via http://www.ruby-forum.com/.
Reply all
Reply to author
Forward
0 new messages