Maven 将Jhipster部署到clevercloud

Maven 将Jhipster部署到clevercloud,maven,deployment,war,jhipster,Maven,Deployment,War,Jhipster,我正在Clevercloud上部署Jhipster应用程序 我已经设置了一些配置: war.json { "build": { "type": "maven", "goal": "package -Pprod -DskipTests" }, "deploy": { "goal": "package -Pprod -DskipTests", "container": "TOMCAT8", "war": [

我正在Clevercloud上部署Jhipster应用程序

我已经设置了一些配置:

war.json

{
   "build": {
      "type": "maven",
      "goal": "package -Pprod -DskipTests"
   },
   "deploy": {
      "goal": "package -Pprod -DskipTests",
      "container": "TOMCAT8",
      "war": [
         {
            "file": "target/myapp-1.0.0.war"
         }
      ]
   }
}
maven.json

{
  "build": {
      "type": "maven",
      "goal": "package -Pprod -DskipTests"
  },
  "deploy": {
    "goal": "package -Pprod -DskipTests"
  }
}
{
  "build": {
      "type": "maven",
      "goal": "package -Pprod -DskipTests"
  },
  "deploy": {
    "goal": "package -Pprod -DskipTests"
  }
}
我已经修改了application-prod.yml以包含db插件的url/用户名/密码

部署时,部署成功,但应用程序未运行

在应用程序页面上,我有404错误。 数据库已正确初始化。 在日志中,我有以下我不理解或无法解决的消息:

多次发送此消息

2017-09-18T09:21:22.701Z: 09:21:21.483 [localhost-startStop-1] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [java:comp/env/logging.exception-conversion-word]
2017-09-18T09:21:22.702Z: 09:21:21.486 [localhost-startStop-1] DEBUG org.springframework.jndi.JndiLocatorDelegate - Converted JNDI name [java:comp/env/logging.exception-conversion-word] not found - trying original name [logging.exception-conversion-word]. javax.naming.NameNotFoundException: Name [logging.exception-conversion-word] is not bound in this Context. Unable to find [logging.exception-conversion-word].
2017-09-18T09:21:22.702Z: 09:21:21.486 [localhost-startStop-1] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [logging.exception-conversion-word]
2017-09-18T09:21:22.702Z: 09:21:21.486 [localhost-startStop-1] DEBUG org.springframework.jndi.JndiPropertySource - JNDI lookup for name [logging.exception-conversion-word] threw NamingException with message: Name [logging.exception-conversion-word] is not bound in this Context. Unable to find [logging.exception-conversion-word].. Returning null.
然后:

和倍数:

2017-09-18T09:21:22.793Z: [09:21:13.416][debug][URLDeployableMonitor] Checking URL [http://localhost:8080/cargocpc/index.html] for status using a timeout of [120000] ms...
2017-09-18T09:21:22.794Z: [09:21:13.452][debug][URLDeployableMonitor] URL [http://localhost:8080/cargocpc/index.html] is not responding: -1 java.net.ConnectException: Connection refused (Connection refused)
2017-09-18T09:21:22.794Z: [09:21:13.452][debug][URLDeployableMonitor] Notifying monitor listener [org.codehaus.cargo.container.spi.deployer.DeployerWatchdog@7bd4937b]
以:

2017-09-18T09:21:32.710Z: 2017-09-18 09:21:28.724  INFO 2232 --- [ost-startStop-1] com.bbs.dm.config.WebConfigurer          : Web application configuration, using profiles: prod
2017-09-18T09:21:32.711Z: 2017-09-18 09:21:28.735  INFO 2232 --- [ost-startStop-1] com.bbs.dm.config.WebConfigurer          : Web application fully configured
2017-09-18T09:21:32.711Z: 2017-09-18 09:21:28.994 DEBUG 2232 --- [ost-startStop-1] i.g.j.c.liquibase.AsyncSpringLiquibase   : Starting Liquibase synchronously
2017-09-18T09:21:36.985Z: Nothing listening on 8080. Please update your configuration and redeploy
2017-09-18T09:21:52.730Z: 2017-09-18 09:21:47.492 DEBUG 2232 --- [ost-startStop-1] i.g.j.c.liquibase.AsyncSpringLiquibase   : Started Liquibase in 18498 ms
2017-09-18T09:21:57.985Z: Application start successful
2017-09-18T09:21:57.985Z: No cron to setup
2017-09-18T09:21:57.986Z: Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-agentd.service → /usr/x86_64-pc-linux-gnu/lib/systemd/system/zabbix-agentd.service.
除了跟随我,我什么也没做

配置中有什么遗漏吗?
(请注意,该应用程序在Heroku或Pivotal等其他平台上的部署情况良好)

在Clevercloud上部署jhipster应用程序。 这是对我有用的东西

我已遵循给出的指示并使用

配置文件:

clevercloud/war.json

{
   "build": {
      "type": "maven",
      "goal": "package -Pprod -DskipTests"
   },
   "deploy": {
      "jarName": "target/myapp-1.0.0.war"
   }
}
clevercloud/maven.json

{
  "build": {
      "type": "maven",
      "goal": "package -Pprod -DskipTests"
  },
  "deploy": {
    "goal": "package -Pprod -DskipTests"
  }
}
{
  "build": {
      "type": "maven",
      "goal": "package -Pprod -DskipTests"
  },
  "deploy": {
    "goal": "package -Pprod -DskipTests"
  }
}

我修改了application-prod.yml以链接数据库。

因此您的应用程序似乎部署在Tomcat8中,但您是如何设置spring配置文件的?这不是运行JHipster应用程序的首选方法,使用
java-jar target/*.war--spring.profiles.active=prod运行可执行war通常要简单得多。你知道我应该如何修改配置以不在Tomcat8中部署吗?不幸的是,我没有使用clevercloud的经验,你应该联系他们。他们还可以提供一个模块来部署,就像我们已经为heroku、openshift、cloudfoundry提供的一样……我们尝试过,comunity的人也尝试过,但是没有尝试过,如果您想直接执行war,您可以将部署部分替换为“deploy”:{“jarName”:“target/myapp-1.0.0.war”}