Rbenv permission denied issue

一个人想着一个人 提交于 2020-01-04 04:21:06

问题


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.


回答1:


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.'



来源:https://stackoverflow.com/questions/27213078/rbenv-permission-denied-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!