【发布时间】:2014-11-26 09:04:25
【问题描述】:
我正在尝试将我的第一个 Jhipster 应用程序部署到云代工厂。
我的 yo jhipster:cloudfoundry 命令显示错误“使用不正确”。大概是在绑定到mysql数据库服务时?
cloud foundry 中的“服务”选项卡仅显示一个 p-mysql 的 SERVICE INSTANCE 和 ClearDB MySQL Database Spark DB 的 SERVICE PLAN。
C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006>yo jhipster:cloudfoundry
CloudFoundry configuration is starting
? Name to deploy as: modeldr006
? Which profile would you like to use? dev
? What is the name of your database service? p-mysql
? What is the name of your database plan? ClearDB MySQL Database Spark DB
Creating Cloud Foundry deployment files
identical deploy\cloudfoundry\manifest.yml
Checking for an existing Cloud Foundry hosting environment...
Creating your Cloud Foundry hosting environment, this may take a couple minutes...
Creating the database
FAILED
Incorrect Usage.
NAME:
create-service - Create a service instance
ALIAS:
cs
USAGE:
cf create-service SERVICE PLAN SERVICE_INSTANCE
EXAMPLE:
cf create-service cleardb spark clear-db-mine
TIP:
Use 'cf create-user-provided-service' to make user-provided services available to cf apps
我不明白的一件事是 Jhipster 如何要求 p-mysql 和 ClearDB MySQL Database Spark DB 的 2 个变量。但用法显示为 3,即 SERVICE PLAN SERVICE_INSTANCE。我的计划是火花,但不是要求。
脚本末尾的推送到云代工厂也失败了,可能是因为之前的错误。
Uploading modeldr006...
FAILED
Error uploading application.
GetFileAttributesEx C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006\target\*.war: The filename, directory name or volume label syntax is incorrect.
× { [Error: Command failed: ] killed: false, code: 1, signal: null }
【问题讨论】:
标签: spring-boot cloud-foundry jhipster