Topic: [SOLVED] Basic deployment problem.

I heed you help, colleagues.
In first time i install ROR server (rvm + ruby 1.9.2 + nginx + passenger +sqlite3)
And I get error:
http://img259.imageshack.us/img259/7210/404error.jpg

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

Somebody met the error before?
Help to fix it, please.

Something needed from my config?

Last edited by itsnikolay (2011-11-09 13:11:59)

Re: [SOLVED] Basic deployment problem.

SOLVED!!!
Passanger was set on production. Rails was set on development.

server {
    listen 80 ;
    root /home/deployer/projects/ponomarevnikolay.ru/public;
    server_name ponomarevnikolay.ru;

   error_page 404 /404.html;
   error_page 422 /422.html;
   error_page 500 /500.html;
    passenger_enabled on;
    #rails_env production;  <--- вот так было
rails_env development;   #<--- вот так стало

}

It just simly need to switch to production both sets and GET PROFIT!

Re: [SOLVED] Basic deployment problem.

In production configuration:

server {
    listen 80 ;
    root /home/deployer/projects/ponomarevnikolay.ru/public;
    server_name ponomarevnikolay.ru;
   error_page 404 /404.html;
   error_page 422 /422.html;
   error_page 500 /500.html;
    passenger_enabled on;
    rails_env production;  <--- вот так было

}

$> RAILS_ENV=production rake db:migrate

$> RAILS_ENV=production rake db:seed