通过CodePipelines将Jhipster应用程序部署到ElasticBeanstalk

时间:2019-02-07 05:25:57

标签: spring jhipster amazon-elastic-beanstalk aws-codepipeline

我有一个Jhipster应用程序,该应用程序的前端具有React,并且我想使用CodePipelines部署到EB。对于构建件,这是我的buildspec.yml:

version: 0.2

phases:
  install:
    commands:
      - echo Start install phase...
      - sudo apt-get update -y
      - sudo apt-get install nodejs -y

  build:
    commands:
      - echo Start build phase
      - mvn package

artifacts:
  files:
    - 'target/myapp-0.0.1-SNAPSHOT.war'
    - 'target/www/**/*'

构建可以正常进行。但是在部署阶段,我得到以下信息:

Deployment completed, but with errors: During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version. Failed to deploy application. Unsuccessful command execution on instance id(s) 'i-0a1e5098338ba5f2c'. Aborting the operation. [Instance: i-0a1e5098338ba5f2c] Command failed on instance. Return code: 1 Output: (TRUNCATED)...lib/js-yaml.min.js 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. Unable to launch application as the source bundle does not contain either a file named application.jar or a Procfile.

我在这里想念什么?我必须更改一些配置吗?

编辑:EB环境是Java 8选项。

0 个答案:

没有答案
相关问题