我正在尝试使用Elastic Beanstalk部署我的Ruby on Rails应用程序。我正在遵循本指南 - http://ruby.awsblog.com/post/Tx2AK2MFX0QHRIO/Deploying-Ruby-Applications-to-AWS-Elastic-Beanstalk-with-Git
但不幸的是,当我去网站时它会显示
404 Not Found nginx的/ 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"
答案 0 :(得分:1)
假设它是Rails应用程序。检查您的路线:
<your app dir>/config/routes.rb
您应该为根路由定义一些内容:
# Application home
root :to => 'welcome#index'