-
Notifications
You must be signed in to change notification settings - Fork 930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase emulators:start --only hosting:<target> is not working #2103
Comments
This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information. |
@ChromeQ thanks! This seems like a straightforward bug. For now your best workaround is to use |
Hi there! I'm running into this bug now and just wanted to detail an issue with the workaround. I've tried to work around it by:
But there is no way I've found to alter the databaseURL after hosting has already set the options in Next experiment is using a firestoreConfig globbal variable that I'm not sure where it came from and explicitly changing the databaseURL in Cheers! |
^ ok fresh mind now and I'm realizing that calling EDIT: Another option is generating a custom config that only has the target I want and then |
@adam-remotesocial this is a huge pain and we're working on it as we speak: Once that PR is merged and released (a few weeks, probably) you'll be able to call And then once that is all in place we'll be able to modify the magic |
Oh wow that's great. Thank you! |
Hi @samtstern, now that the other issues raised are fixed and merged in firebase/firebase-js-sdk#3904, is this original issue still a "straightforward bug"? Been running into this issue again when trying to emulate and debug an issue in prod vs staging targets as outlined in the desc. Thanks |
@ChromeQ yes I would still consider this a bug, we did add the magic |
I see v9.6.0 mentions
It sounds like the bug raised in this issue, and I've updated to the latest version and it seems to be fixed 🎉 |
[REQUIRED] Environment info
firebase-tools: 7.11.0
Platform: Ubuntu 19.10
[REQUIRED] Test case
[REQUIRED] Steps to reproduce
Here is a sample
firebase.json
and.firebaserc
files to show targets are set up:Below is the output of other firebase commands to show the targets are set up correctly:
When running
npx firebase emulators:start --only hosting
without a target then it starts both targets successfully. I'm trying to get it to run with just one at a time.[REQUIRED] Expected behavior
I would expect this to start the emulator with only the target specified. But it closes the emulators immediately
[REQUIRED] Actual behavior
The text was updated successfully, but these errors were encountered: