CF推送-系统找不到指定的文件

大卫·基万(David Kirwan)

我第一次使用cf,试图将一个简单的应用程序部署到Bluemix。当我尝试cf push时,出现以下错误:

E:\Program Files\tomcat\apache-tomcat-8.0.41\webapps\helloServletMaven\target
λ cf push /helloServletMaven -p /helloServletMaven.war
Creating app /helloServletMaven in org alexander.kirwan / space ORG as [email protected]...
OK

Using route helloservletmaven.mybluemix.net
Binding helloservletmaven.mybluemix.net to /helloServletMaven...
OK

FAILED
Error processing app files: GetFileAttributesEx E:\helloServletMaven.war: The system cannot find the file specified.

E:\Program Files\tomcat\apache-tomcat-8.0.41\webapps\helloServletMaven\target
λ ls
classes/  generated-sources/  helloServletMaven/  helloServletMaven.war  m2e-wtp/  maven-archiver/  maven-status/  test-classes/

E:\Program Files\tomcat\apache-tomcat-8.0.41\webapps\helloServletMaven\target

但是正如您所看到的,当我运行时ls,我确实有war文件。

为什么会这样呢?

顺便说一下,我将Windows和CMDER用于控制台。

亚历克斯·达席尔瓦

看起来您的文件位于本地目录中,因此您无需使用它/helloServletMaven.war,即删除斜杠(/

cf push helloServletMaven -p helloServletMaven.war

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章