Cloud Foun dry local - капля не найдена - PullRequest
0 голосов
/ 03 августа 2020

У меня работает локальный 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

, но возникает та же ошибка. Есть у кого-нибудь идеи, как его правильно запустить? СПАСИБО за любую помощь!

1 Ответ

0 голосов
/ 03 августа 2020

Вам не нужен флаг -f. Это делает что-то еще. Просто удалите его.

Выполнить: cf local pull myProject с последующим cf local run myProject

Имя команды pull должно совпадать с именем команды run. В вашем случае есть разница: myProjekt vs 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)
...