Cloud Foundry本地-未找到液滴



我有我的cf本地运行。首先,我在文件夹/Development/myProject中提取液滴

cf local pull myProjekt

比我想用在本地运行我的cf

cf local run myProject -f myProject

但是出现错误

Error: open ./myProject.droplet: no such file or directory

我想我必须给出液滴的完整路径,尽管它在我运行的当前文件夹中

cf local run ...

比我尝试

cf local run myProject -f myProject -d ~/Development/myProject

但是同样的错误发生了。有人知道如何正确运行它吗?感谢您的帮助!

您不需要-f标志。那是在做别的事情。把它取下来。

运行:cf local pull myProject,然后运行cf local run myProject

pull命令的名称应与run命令的名称相匹配。在您的情况下,有一个区别:myProjektmyProject

如果运行cf local --help,您可以获得更多帮助。以下是run的代码片段。

RUN OPTIONS:
run <name>     Run a droplet with the configuration specified in local.yml.
Droplet filename: <name>.droplet
-i <ip>        Listen on the specified interface IP
Default: localhost
-p <port>      Listen on the specified port
Default: (arbitrary free port)
-d <dir>       Replace the app directory with the specified directory.
The app directory from the droplet is ignored.
Default: (not mounted)
-w             When used with -d, restart the app when the contents of the
specified directory are changed.
Default: false, Invalid: with -t, without -d
-t             Start a shell (Bash) with the same environment as the app.
Default: false, Invalid: with -w
-s <app>       Use the service bindings from the specified remote CF app
instead of the service bindings in local.yml.
Default: (uses local.yml or app provided by -f)
-f <app>       Tunnel service connections through the specified remote CF
app. This re-writes the service bindings in the container
environment in order to use the tunnel. The service
bindings from the specified app will be used if -s is not
also passed.
Default: (uses local.yml)

相关内容

  • 没有找到相关文章

最新更新