0

我有我的 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

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

4

1 回答 1

0

你不想要-f国旗。那是在做别的事情。只需将其删除。

运行:cf local pull myProject后跟cf local run myProject

命令的名称pull应与命令的名称匹配run。在你的情况下,有一个区别:myProjektvs myProject

如果你跑步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)
于 2020-08-03T16:37:17.550 回答