简体   繁体   English

Rails 4 Elastic Beanstalk部署错误

[英]Rails 4 Elastic Beanstalk deployment error

I'm getting the following error upon deployment from the AWS EB CLI: 从AWS EB CLI部署时,出现以下错误:

ERROR: [Instance: i-aa73ca73] Command failed on instance. Return code: 137 Output: (TRUNCATED)...a68506c488392288a70c5f31c658d338f5a7504ccabe8824ee8de2dd6ca94a.png
I, [2015-11-30T14:28:50.159903 #25859]  INFO -- : Writing /var/app/ondeck/public/assets/application-6256e81befb040edb2ea50d5bb17b53518a99712fcea0760a143e8042dfa2326.js
Killed (core dumped). 
Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/11_asset_compilation.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
ERROR: Unsuccessful command execution on instance id(s) 'i-aa73ca73'. Aborting the operation.
ERROR: Failed to deploy application. 

Any help would be greatly appreciated. 任何帮助将不胜感激。 Thanks. 谢谢。

I ended up going through my application.js file and played around with removing and adding back required scripts. 我最终浏览了application.js文件,并进行了删除和重新添加所需脚本的操作。 I narrowed it down to one or more of the following as the culprit. 我将其缩小为一个或多个以下元凶。

Removed: 删除:

//= require gmaps/google
//= require rest_in_place
//= require underscore

I'll continue to play with it and report back if possible. 我将继续使用它,并在可能的情况下进行报告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM