Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I recently got a Linode and followed a guide on how to setup Ruby On Rails with Nginx on Debian 5.

Everything seems to be setup properly (no errors or issues following that guide). I've uploaded the ruby app I was working on locally, updated the nginx.conf file to point to the app and am now getting an error:

no such file to load -- config/environment

Please see this screen cap of the error for full details. I have tried changing permissions on the environment.rb file. I think I'm missing something very basic. For what it's worth, the site does work locally in a mac environment.

Here is a snippet of my nginx log.

Here's the site in my nginx conf file:

server {
  listen          80;
  server_name     *.mydomain.com;

  root            html/simple_cms/public;
    passenger_enabled on;
    passenger_use_global_queue on;
}

I'm a complete newbie both in the linux environment and as a ruby developer. So any advice would be well taken and much appreciated!

share|improve this question
add comment

1 Answer 1

This should be an absolute path:

root /some/path/html/simple_cms/public;
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.