简体   繁体   中英

Why can't I start my webserver (`rails server`)?

I've created a new rails app using rails composer ( https://github.com/RailsApps/rails-composer ). however when I start my rails server (WEBrick), I get the following error:

~/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/fileutils.rb:247:in `mkdir': Permission denied

I've looked at this question and tried the steps in the selected answer but I'm getting the same issue. This seems like a conflict between RVM and Bundler since I've got ruby-1.9.3 as the top level directory and 1.9.1 as an intermediate directory. Not really sure what that means.

Any help is greatly appreciated.

This is generally the result of some directory in your Rails directory not having the correct permissions.

Here is an in-depth discussion of the permissions in Rails: https://stackoverflow.com/a/6091058/1669208

If you wanted to check to see if that was the problem. Then on a NON-PRODUCTION SERVER give 777 access to the entire rails directory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM