什么时候应该使用 cf push vs cf push -p
When should one use cf push vs cf push -p
我已经看到,当您想要指定一个特定的部署工件时,您会使用 "cf push -p"。当我不使用清单文件时,什么时候应该使用 "cf push" 与 "cf push -p"?
- 如果您使用的是
cf push
,则必须在 manifest.yml 中提及 -p: target/sampleapp.jar
等应用程序路径。
- 您在没有 manifest.yml 的情况下部署应用程序,那么
-p
标志是强制性的,例如 cf push -p target/sampleapp.jar
我已经看到,当您想要指定一个特定的部署工件时,您会使用 "cf push -p"。当我不使用清单文件时,什么时候应该使用 "cf push" 与 "cf push -p"?
- 如果您使用的是
cf push
,则必须在 manifest.yml 中提及-p: target/sampleapp.jar
等应用程序路径。 - 您在没有 manifest.yml 的情况下部署应用程序,那么
-p
标志是强制性的,例如cf push -p target/sampleapp.jar