ElasticBeanstalk and Rails - application deployment, but only getting 404 not found nginx / 1.4.3

I am trying to deploy a simple application that I developed for AWS with EB. The application works without any problems on my local machine, but when I start and deploy EB, nothing happens. I keep getting the 404 Not Found page with the text "nginx / 1.4.3".

As for my Rails application, I use Rails v4.0.1 and Ruby 2.0.0 (although I switched to 1.9.3 and everything works fine). I have successfully used both Passenger and WEBrick on my local machine.

When I push my application to my EB environment, I get the following error in the event log:

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

I have no idea what causes this. Advice on this link ( Deployment of rails with unstable 404 binstock cannot be found error ) did not help.

Here is my eb status:

URL     : app-env-f9xtrrcpch.elasticbeanstalk.com
Status      : Ready
Health      : Green
Environment Name: app-env
Environment ID  : e-fjvq2ztbxh
Environment Tier: WebServer::Standard::1.0
Solution Stack  : 64bit Amazon Linux 2013.09 running Ruby 1.9.3
Version Label   : git-3ea95ce5ee91763bee8a9f2f5987a023725d9af1-1392264246964
Date Created    : 2014-02-12 22:03:10
Date Updated    : 2014-02-12 23:04:31
Description : 

What I suspect may be the reason for this:

.Ebextensions / myapp.config file (do gems need to be requested here?)

Rails Version

Invalid Passenger / Nginx configuration file.

Any help is greatly appreciated. I would be happy to provide further information.

+4
source share
1 answer

" " , . Elastic Beanstalk (hooks), , . , , . AMAZON EB . directory-hooks-executor.log, .

+1

Source: https://habr.com/ru/post/1526670/


All Articles