我正在尝试将我的第一个应用程序部署到云铸造厂。
我的yo :cloudfoundry命令显示了一个错误“不正确的用法”。大概是在绑定到mysql数据库服务时吗?
云铸造中的"services“选项卡只显示了一个带有ClearDB MySQL数据库Spark服务计划的p服务实例。
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和ClearDB MySQL数据库Spark的两个变量的。但用法显示为3,即服务计划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 }
发布于 2014-11-26 04:57:05
如果要使用ClearDB,则必须回答:
当你做一个"cf集市“时,服务和计划就会提供给你。
我们不会在JHipster中预先配置这些服务,因为这取决于您的CloudFoundry提供商(在这里您使用Pivotal,但也有其他的),而且我们不想为提供付费服务的公司做广告。
https://stackoverflow.com/questions/27145002
复制相似问题