Skip to content

Don't start emulators without services initialized - #2206

Merged
samtstern merged 3 commits into
masterfrom
ss-fix-2112
May 5, 2020
Merged

samtstern merged 3 commits into
masterfrom
ss-fix-2112

Conversation

@samtstern

@samtstern samtstern commented May 5, 2020 •

Copy link
Copy Markdown
Contributor

Description

Fixes #2112 and a similar issue with the hosting emulator.

Scenarios Tested

firebase.json

{
  "firestore": {
    "rules": "firestore.rules",
    "indexes": "firestore.indexes.json"
  },
  "emulators": {
    "functions": {
      "port": 5001
    },
    "firestore": {
      "port": 8080
    },
    "hosting": {
      "port": 5005
    }
  }
}
$ firebase emulators:start
i  emulators: Starting emulators: functions, firestore, hosting
✔  hub: emulator hub started at http://localhost:4400
⚠  functions: The functions emulator is configured but there is no functions source directory. Have you run firebase init functions?
i  firestore: firestore emulator logging to firestore-debug.log
✔  firestore: firestore emulator started at http://localhost:8080
i  firestore: For testing set FIRESTORE_EMULATOR_HOST=localhost:8080
⚠  hosting: The hosting emulator is configured but there is no hosting configuration. Have you run firebase init hosting?
^Ci  emulators: Shutting down emulators.
i  hub: Stopping emulator hub
i  firestore: Stopping firestore emulator

Sample Commands

@googlebot googlebot added the cla: yes Manual indication that this has passed CLA. label May 5, 2020
@samtstern
samtstern requested a review from bkendall May 5, 2020 13:48

@bkendall bkendall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one line to delete

Comment thread src/emulator/controller.ts Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Manual indication that this has passed CLA.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Emulator fails to start if functions port is specified, but functions were not initialized

3 participants