使用Elastic Beanstalk部署Rails 404未find错误

我试图用Elastic Beanstalk部署我的Ruby on Rails应用程序。 我按照这个指南 – http://ruby.awsblog.com/post/Tx2AK2MFX0QHRIO/Deploying-Ruby-Applications-to-AWS-Elastic-Beanstalk-with-Git

但不幸的是,当我去的网站显示

404没有findnginx / 1.4.3

eb status –verbose给出了这个:

Retrieving status of environment "SurveyMe". URL : SurveyMe-i5dkejjacp.elasticbeanstalk.com Status : Ready Health : Green Environment Name: SurveyMe Environment ID : e-rtzrvemw53 Environment Tier: WebServer::Standard::1.0 Solution Stack : 64bit Amazon Linux 2013.09 running Ruby 1.9.3 Version Label : git-b2f153a095a4392b2c77a9e40a3bd91acf02757e-1391723347993 Date Created : 2014-02-06 21:36:28 Date Updated : 2014-02-06 21:49:37 Description : 

我看到一些类似问题的问题,但大部分都有错误。 任何想法可能会发生什么或检查什么? 该应用程序目前部署与Heroku – 这可能是一个问题?

包括我的routes.rb

 SurveyMe::Application.routes.draw do devise_for :developers devise_for :users mount Rapidfire::Engine => "/surveys" root :to => "static_pages#home" match "/about", to: "static_pages#use", via: "get" match "/developers", to: "static_pages#developer" , via: "get" match "/how", to: "static_pages#how", via: "get" 

假设它是Rails应用程序。 检查你的路线下:

 <your app dir>/config/routes.rb 

你应该为根路由定义一些东西:

 # Application home root :to => 'welcome#index'