Firebase 部署的详细日志记录?

eat*_*ode 8 firebase angular firebase-cli

是否可以在 Firebase 的部署工具中获得详细日志记录?

我正在尝试按照本指南在我的网站上启用 Angular Universal:https : //hackernoon.com/deploying-angular-universal-v6-with-firebase-c86381ddd445

我的应用程序构建得很好,但是在执行 a 时firebase deploy,我收到了这个<sarcasm>非常有用的</sarcasm>错误消息:

在此处输入图片说明

我很想知道我做错了什么,但看起来 Firebase 真的不确定。我检查了 Firebase 控制台下的日志屏幕,但它是空的。

pal*_*sch 10

您可以通过运行以下命令查看 Firebase CLI 工具的选项firebase --help

>> firebase --help
Usage: firebase [options] [command]

Options:
  -V, --version                           output the version number
  -P, --project <alias_or_project_id>     the Firebase project to use for this command
  --account <email>                       the Google account to use for authorization
  -j, --json                              output JSON instead of text, also triggers non-interactive mode
  --token <token>                         supply an auth token for this command
  --non-interactive                       error out of the command instead of waiting for prompts
  -i, --interactive                       force prompts to be displayed
  --debug                                 print verbose debug output and keep a debug log file
  -c, --config <path>                     path to the firebase.json file to use for configuration
  -h, --help                              output usage information
...
Run Code Online (Sandbox Code Playgroud)

正如您在此处所看到的,您可以--debug在任何 Firebase 命令上使用该标志来获取更详细的输出。


小智 8

如果还有人有同样的问题/问题,这可能会有所帮助:

firebase functions:log
Run Code Online (Sandbox Code Playgroud)