Rails AWS:欢迎主页不会消失



我有一个带有PostgreSQL的基本导轨应用程序。当地,它很高兴像蛤一样。我经营EB Init,EB Start和EB状态,可以返回URL,状态准备和健康绿色。在本地,我的更改正在我的Rails应用程序上显示(没有什么强烈,只是一个根本不是Beanstalk欢迎屏幕的根)。当我git aws.push时,它将推到正确的环境名称,愉快地按下并压缩对象,以"远程到" long string " head " head-> master(强制更新)"。

我等到git" eb状态"再次为绿色(最初是在更新,所以显然是去正确的位置),然后转到指定的URL ...然后保留Beanstalk的问候。

(不再相关;似乎该解决方案仅适用于较早版本的栏杆;保留它以确保清晰度)(Amazon Web Services Beanstalk,Git aws.push似乎都在推动,但不会改变任何东西)有一个类似的问题,但是当我键入" git rm public/index.html"时,我会得到"致命:pathspec的public/index.html"。

我正在使用Rails 4.0.1。有任何想法吗?

编辑:

我认为问题可能与不使用RDS有关;当我使用一个问题时,此问题不存在。但是在这个应用程序上,我试图运行本地的PostgreSQL,类似于我在Heroku上的操作...

编辑:

我的路线文件

App::Application.routes.draw do
   resources :users
   root "users#show"
end

编辑:

查看EC2,在最近的活动中

Instance: i-9ebf03b0 Module: AWSEBAutoScalingGroup ConfigSet: null] Command failed on      instance. 
Return code: 1 Output: Error occurred during build: Command hooks failed. 

在日志中查看我看到的:

Installing pg (0.17.1) 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
    /usr/bin/ruby1.9 extconf.rb 
    checking for pg_config... no
    No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config
    checking for libpq-fe.h... no
    Can't find the 'libpq-fe.h header
    *** extconf.rb failed ***
    Could not create Makefile due to some reason, probably lack of
    necessary libraries and/or headers.  Check the mkmf.log file for more details.  You    
    may need configuration options

研究和尝试以上的各种事情;只是想继续有帮助,询问人们的更新:)

您可能要将其添加到配置中,以使其扩展:

$ cat .ebextensions/postgres.config
packages:
  yum:
    postgresql-devel: []

已解决!

如果我转到处理Rails应用程序并键入以下内容的EC2实例,则可以解决该问题。

sudo yum安装postgresql postgresql-server postgresql-devel postgresql-contrib postgresql-docs postgresql-libs

回想起来,我希望我一个一个一个一个一个一个,以查看确切解决问题的确切,但这都是相同的。

最新更新