3

I have trouble getting my Rails app running after I deployed this to my DO droplet. I deployed (and installed everything including rbenv) following this guide. Rbenv seems to be installed properly but app is not running and nginx error log says "cannot execute /root/.rbenv/shims/ruby permission denied (13)"

I can not get the sense of this error, hope anyone can help with that.

alv_721
  • 305
  • 3
  • 18

1 Answers1

3

Looks like rbenv's installed under root. It should probably be installed under your (or your app user's) home directory, in this case for the user named 'deploy.'

This Passenger configuration line from nginx.conf shows where it's expected to live:

/home/deploy/.rbenv/shims/ruby

So you should probably (re)install rbenv as/under 'deploy.'

TK-421
  • 10,598
  • 3
  • 38
  • 34
  • Ok, the only thing I skipped from the guide above, was creating a "deploy" user. So I don't have another user exept root and I did everything as root. – alv_721 Nov 30 '14 at 12:54
  • And my **passanger_ruby** is linked to **root/.rbenv/shims/ruby** in **nginx.conf** – alv_721 Nov 30 '14 at 13:02
  • I see. It still sounds like somebody's trying to do something as a different user, or (otherwise) there's a missing `sudo` somewhere... – TK-421 Nov 30 '14 at 13:17