gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 14:56:32 24 4
gpt4 key购买 nike

我在 Elastic BeansTalk 上有一个 Spring Boot 应用程序,它运行良好。部署 jar 也完全没有问题。

我正在尝试使用 EB 命令行界面部署应用程序,但我收到了这个我无法理解的错误

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

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

关于java - 使用 Elastic BeansTalk CLI 部署 Spring Boot 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52630544/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com