我正在尝试将我的第一个Jhipster应用程序部署到云代工厂。
我的哟jhipster:cloudfoundry命令显示错误"错误使用"。想必是在绑定到mysql数据库服务的时候?
"服务"云代工厂中的选项卡只显示了一个带有ClearDB MySQL数据库Spark DB服务计划的p-mysql服务实例。
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 }
答案 0 :(得分:1)
如果您想使用ClearDB,那么您必须回答:
当您进行“cf marketplace”时,将为您提供服务和计划。
我们不会在JHipster中预先配置它们,因为它取决于您的CloudFoundry提供商(这里您使用Pivotal,但还有其他提供商),因为我们不想宣传提供付费服务的公司。