[英]Deploying Rails with Elastic Beanstalk 404 Not Found Error
I'm trying to deploy my Ruby on Rails app with Elastic Beanstalk. 我正在尝试使用Elastic Beanstalk部署我的Ruby on Rails应用程序。 I was following this guide - http://ruby.awsblog.com/post/Tx2AK2MFX0QHRIO/Deploying-Ruby-Applications-to-AWS-Elastic-Beanstalk-with-Git 我正在按照本指南 - http://ruby.awsblog.com/post/Tx2AK2MFX0QHRIO/Deploying-Ruby-Applications-to-AWS-Elastic-Beanstalk-with-Git
But unfortunately, when I go to the site it shows 但不幸的是,当我去该网站时,它显示
404 Not Found nginx/1.4.3 404未找到nginx / 1.4.3
eb status --verbose gives this: 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 :
I saw a few questions with a similar problem but most had errors here. 我看到了几个有类似问题的问题,但大多数都有错误。 Any ideas what might be going on or what to check? 任何想法可能会发生什么或检查什么? The app is currently deployed with Heroku - could that be an issue? 该应用程序目前与Heroku一起部署 - 这可能是个问题吗?
Including my routes.rb 包括我的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"
Assuming it's Rails application. 假设它是Rails应用程序。 Check your routes under: 检查您的路线:
<your app dir>/config/routes.rb
You should have something defined for the root route: 您应该为根路由定义一些内容:
# Application home
root :to => 'welcome#index'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.