Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Verbose logging of Firebase deploy?

Is it possible to get verbose logging in Firebase's deploy tool?

I am trying to enable Angular Universal on my site, following this guide: https://hackernoon.com/deploying-angular-universal-v6-with-firebase-c86381ddd445

My app builds just fine, but when executing a firebase deploy, I get this <sarcasm>super helpful</sarcasm> error message:

enter image description here

I would love to know what I am doing wrong, but as it appears Firebase really isn't sure. I checked the log screen under the Firebase console, but it is empty.

like image 470
eat-sleep-code Avatar asked Dec 21 '18 15:12

eat-sleep-code


People also ask

How do you check Logs in firebase?

You can see logs in real time using the Firebase console. Choose your project, click the Functions product on the left, then click the Logs tab.

What script should be run before every deploy firebase?

The firebase. json file is required to deploy assets with the Firebase CLI because it specifies which files and settings from your project directory are deployed to your Firebase project.


2 Answers

You can view options for the Firebase CLI tool by running 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
...

As you can see here, you can use the --debug flag on any Firebase command to get more verbose output.

like image 79
palsch Avatar answered Oct 19 '22 17:10

palsch


If there is still someone having the same question/ issue, this may help:

firebase functions:log
like image 30
ADog Avatar answered Oct 19 '22 17:10

ADog