开发者

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

开发者 https://www.devze.com 2023-02-20 06:43 出处:网络
I\'m trying to deploy my Rails 3 application to real environment 开发者_StackOverflow(Apache+Passenger).

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

精彩评论

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

关注公众号