Skip to content

Instantly share code, notes, and snippets.

@yccheok
Last active September 3, 2024 14:54
Show Gist options
  • Save yccheok/e289d4cdbef93bcb4c20a8230d533644 to your computer and use it in GitHub Desktop.
Save yccheok/e289d4cdbef93bcb4c20a8230d533644 to your computer and use it in GitHub Desktop.
(venv) yccheok@Yans-MacBook-Pro functions % export PUBSUB_PROJECT_ID="YYY";
export PUBSUB_EMULATOR_HOST="localhost:8085";
export GOOGLE_APPLICATION_CREDENTIALS="/Users/yccheok/yocto/ZZZ/firebase/functions/YYY.json";
firebase emulators:start
(node:4337) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
i emulators: Starting emulators: auth, functions, firestore, pubsub, storage
⚠ emulators: It seems that you are running multiple instances of the emulator suite for project YYY. This may result in unexpected behavior.
⚠ functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: database, hosting, dataconnect
⚠ functions: Your GOOGLE_APPLICATION_CREDENTIALS environment variable points to /Users/yccheok/yocto/ZZZ/firebase/functions/YYY.json. Non-emulated services will access production using these credentials. Be careful!
i firestore: Firestore Emulator logging to firestore-debug.log
✔ firestore: Firestore Emulator UI websocket is running on 9150.
i pubsub: Pub/Sub Emulator logging to pubsub-debug.log
i ui: Emulator UI logging to ui-debug.log
i functions: Watching "/Users/yccheok/yocto/ZZZ/firebase/functions" for Cloud Functions...
* Serving Flask app 'serving'
* Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:8081
Press CTRL+C to quit
127.0.0.1 - - [03/Sep/2024 14:50:12] "GET /__/functions.yaml HTTP/1.1" 200 -
127.0.0.1 - - [03/Sep/2024 14:50:12] "GET /__/quitquitquit HTTP/1.1" 200 -
/bin/sh: line 1: 4426 Terminated: 15 python3.12 "/Users/yccheok/yocto/ZZZ/firebase/functions/venv/lib/python3.12/site-packages/firebase_functions/private/serving.py"
✔ functions: Loaded functions definitions from source: cloud_storage_trigger, on_request_example, simple_youtube_trigger, youtube_request.
✔ functions[us-central1-cloud_storage_trigger]: storage function initialized.
✔ functions[us-central1-on_request_example]: http function initialized (http://127.0.0.1:5001/YYY/us-central1/on_request_example).
i functions[us-central1-simple_youtube_trigger]: function ignored because the pubsub emulator does not exist or is not running.
✔ functions[us-central1-youtube_request]: http function initialized (http://127.0.0.1:5001/YYY/us-central1/youtube_request).
┌─────────────────────────────────────────────────────────────┐
│ ✔ All emulators ready! It is now safe to connect your app. │
│ i View Emulator UI at http://127.0.0.1:4000/ │
└─────────────────────────────────────────────────────────────┘
┌────────────────┬────────────────┬─────────────────────────────────┐
│ Emulator │ Host:Port │ View in Emulator UI │
├────────────────┼────────────────┼─────────────────────────────────┤
│ Authentication │ 127.0.0.1:9099 │ http://127.0.0.1:4000/auth │
├────────────────┼────────────────┼─────────────────────────────────┤
│ Functions │ 127.0.0.1:5001 │ http://127.0.0.1:4000/functions │
├────────────────┼────────────────┼─────────────────────────────────┤
│ Firestore │ 127.0.0.1:8080 │ http://127.0.0.1:4000/firestore │
├────────────────┼────────────────┼─────────────────────────────────┤
│ Pub/Sub │ 127.0.0.1:8085 │ n/a │
├────────────────┼────────────────┼─────────────────────────────────┤
│ Storage │ 127.0.0.1:9199 │ http://127.0.0.1:4000/storage │
└────────────────┴────────────────┴─────────────────────────────────┘
Emulator Hub running at 127.0.0.1:4400
Other reserved ports: 4500, 9150
Issues? Report them at https://github.com/firebase/firebase-tools/issues and attach the *-debug.log files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment