0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GoogleCloudFunctionsのローカルエミュレータが起動しない

0
Posted at

問題

functionsコマンドでローカルエミュレータが挙動がおかしくて3分くらいつまった。

原因

bashzshでコマンドがちがった。

functionsコマンドはzshシェルに全シェル関数定義を表示するコマンドとして組み込まれている。

解決法

functionsではなくfunctions-emulatorを使う

bash

$ functions start
$ functions deploy hogehoge --trigger-http

zsh

$ functions-emulator start
$ functions-emulator deploy hogehoge --trigger-http

余談

過去にGoogleCloudPlatformリポジトリにてissueとしてあがっており、実装の流れが確認できる。

The functions command is a built-in in the ZSH shell. It prints out all the shell function definitions.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?