开发者

Deploying Rails application: Permission denied - /root/.gems

I'm trying to deploy my Rails 3 application to real environment 开发者_StackOverflow(Apache+Passenger).

However, I got the following error:

Permission denied - /root/.gems

Any ideas ?

And one more (probably stupid) question: Do I need to run rails server in the real environment, like I do in the development one ?


If you're using passenger, you don't need to use Rails' server.

As far as your initial question, it sounds like you installed rubygems with sudo. The gem path is in the root directory. I'd recommend going through the gems installation again as a normal user, not root.


Here's the answer that solved this for me.

http://discussion.dreamhost.com/thread-128920.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜