使用Elastic BeansTalk CLI部署Spring Boot应用程序

编程入门 行业动态 更新时间:2024-10-11 03:19:43
本文介绍了使用Elastic BeansTalk CLI部署Spring Boot应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在Elastic BeansTalk上有一个Spring Boot应用程序,它运行完美.另外,部署jar完全没有问题.

I have a Spring Boot application on Elastic BeansTalk and it works perfectly. Also deploying the jar has no issues at all.

我正在尝试使用EB命令行界面来部署应用程序,但是出现了我无法理解的错误

I'm trying to deploying the app using the EB command line interface but I get this error I can't understand

darko [Analytics] $ eb部署 将Volta demo/app-44a2-181003_171058.jar上传到S3.可能还要等一下. 上传完成. 2018-10-03 15:11:00 INFO环境更新已开始. 2018-10-03 15:11:09信息正在将新版本部署到实例. 2018-10-03 15:11:13错误无法启动应用程序,因为源捆绑包不包含名为application.jar或Procfile的文件. 2018-10-03 15:11:15错误[实例:i-0252754fc608a26ac]命令在实例上失败.返回码:1输出:(TRUNCATED)... ics/pom.properties 由于源包中没有名为application.jar或Procfile的文件,因此无法启动应用程序. 由于源包中没有名为application.jar或Procfile的文件,因此无法启动应用程序. 挂钩/opt/elasticbeanstalk/hooks/appdeploy/pre/01_configure_application.sh失败.有关更多详细信息,请使用控制台或EB CLI检查/var/log/eb-activity.log. 2018-10-03 15:11:15 INFO命令已在所有实例上完成执行.摘要:[成功:0,失败:1]. 2018-10-03 15:11:15错误在实例ID'i-0252754fc608a26ac'上命令执行失败.中止操作. 2018-10-03 15:11:16错误无法部署应用程序.

darko [Analytics] $ eb deploy Uploading Volta demo/app-44a2-181003_171058.jar to S3. This may take a while. Upload Complete. 2018-10-03 15:11:00 INFO Environment update is starting. 2018-10-03 15:11:09 INFO Deploying new version to instance(s). 2018-10-03 15:11:13 ERROR Unable to launch application as the source bundle does not contain either a file named application.jar or a Procfile. 2018-10-03 15:11:15 ERROR [Instance: i-0252754fc608a26ac] Command failed on instance. Return code: 1 Output: (TRUNCATED)...ics/pom.properties Unable to launch application as the source bundle does not contain either a file named application.jar or a Procfile. Unable to launch application as the source bundle does not contain either a file named application.jar or a Procfile. Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/01_configure_application.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI. 2018-10-03 15:11:15 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1]. 2018-10-03 15:11:15 ERROR Unsuccessful command execution on instance id(s) 'i-0252754fc608a26ac'. Aborting the operation. 2018-10-03 15:11:16 ERROR Failed to deploy application.

有什么想法吗?

推荐答案

我能够成功部署.我需要的只是.elasticbeanstalk目录中config.yml中的正确文件名.这是我的工作config.yml

I was able to deploy successfully. All I needed was the correct file name inside the config.yml inside .elasticbeanstalk directory. Here is my working config.yml

branch-defaults: master: environment: analytics-env environment-defaults: analytics-env: branch: null repository: null deploy: artifact: target/analytics-0.0.1-SNAPSHOT.jar global: application_name: Analytics default_ec2_keyname: null default_platform: arn:aws:elasticbeanstalk:eu-central-1::platform/Java 8 running on 64bit Amazon Linux/2.7.5 default_region: eu-central-1 include_git_submodules: true instance_profile: null platform_name: null platform_version: null profile: null sc: git workspace_type: Application

更多推荐

使用Elastic BeansTalk CLI部署Spring Boot应用程序

本文发布于:2023-10-28 10:53:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1536428.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   BeansTalk   Elastic   CLI   Boot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!