如何为 apiai-facts-about-google-nodejs 操作示例部署功能服务器
How to deploy functions server for apiai-facts-about-google-nodejs Actions example
我正在按照 Facts About Google 示例的说明进行操作,但我似乎无法执行 README.md 中的步骤:
Deploy the fulfillment webhook to your preferred hosting environment
(we recommend Google Cloud Functions).
我正在尝试启动功能服务器:
$ functions deploy factsAboutGoogle --trigger-http
functions deploy <functionName> <modulePath>
Options:
--host, -h The emulator's host. [string]
--port, -p The emulator's port. [number]
--help Show help [boolean]
--version Show version number [boolean]
--trigger-http, -t Deploys the function as an HTTP function.
Not enough non-option arguments: got 1, need at least 2
我也尝试过使用 npm start
,但我遇到了同样的问题。我不知道 functionName 或 modulePath 应该是什么。
我尝试了以下方法,发现亚伯拉罕也有同样的想法。这对我有用:
functions deploy factsAboutGoogle ./ --trigger-http
我正在按照 Facts About Google 示例的说明进行操作,但我似乎无法执行 README.md 中的步骤:
Deploy the fulfillment webhook to your preferred hosting environment (we recommend Google Cloud Functions).
我正在尝试启动功能服务器:
$ functions deploy factsAboutGoogle --trigger-http
functions deploy <functionName> <modulePath>
Options:
--host, -h The emulator's host. [string]
--port, -p The emulator's port. [number]
--help Show help [boolean]
--version Show version number [boolean]
--trigger-http, -t Deploys the function as an HTTP function.
Not enough non-option arguments: got 1, need at least 2
我也尝试过使用 npm start
,但我遇到了同样的问题。我不知道 functionName 或 modulePath 应该是什么。
我尝试了以下方法,发现亚伯拉罕也有同样的想法。这对我有用:
functions deploy factsAboutGoogle ./ --trigger-http