Open ZYinMD opened 4 years ago
edited because issue was moved from the firebase-tools-ui repo to this repo.
any update to solve this issue yet?
@ZYinMD I had the same issue. I solved it for my use case with the --only
option. I run emulators this way:
firebase emulators:start --only "hosting:<target>" --project <projectId>
In my case, each site belongs to a different project but I suppose you can avoid the --project
option, and firebase defaults to the project's default in .firebaserc
. Hope that helps.
kmcnellis self-assigned this on 3 Oct 2020 kmcnellis unassigned kmcnellis on 28 Dec 2020
okay... 😃
Hi ! I have the same reqest, in particular to test (and include in CI workflow) cross web app integration. Many thanks in advance.
+1 from us! We need to be able to specify an emulator port for each of the hosting targets defined in our config
In our use case, we have rewrites to triggered functions on one of our hosting targets. In order to test in development, we have to duplicate those rewrites over to the main target. Since we assign the url's programmatically, it's not feasible to fetch the port from the firebase-tools console output
Hi. Any updates here? I would really like to have this for testing purposes.
+1
Hi, Any updates? This would be helpful for testing.
Hi @bkendall, I'm interested in contributing. Is the team open to receiving a PR for these changes?
Yeah, I think we can review a PR. I'm not 100% sure what the best solution would look like off the top of my head, but I'd be happy to work on that in a PR (though, be warned, my CLI time is pretty limited these days so I'm sorry if I'm not immediately responsive)
Hello all, Is there any update? I have an issue when I have --project demo-.... prefix with using emulators, that I am not able with any tryings to get emulators with multi site running.
When I use target in more hosting entries in firebase.json, this error shows up:
Error: Deploy target ***-cms not configured for project demo-***. Configure with:
firebase target:apply hosting ***-cms <resources...>
When I use site attribute, this error shows up:
Error: could not find sites for project "demo-glassfinder"
Command I am using:
firebase emulators:start --project demo-***
I have this in my firebase.json
as I am using devenv folder with only one emulator running with multiple sites:
"hosting": [
{
"site": "***-frontend",
"source": "src/***-frontend"
},
{
"site": "***-cms",
"source": "src/***-cms"
}
],
Any suggestions? Thanks in advance.
@charlesgreen @bkendall
If I configure multiple hosting sites with "deploy targets", and run the emulator, there are 2 problems:
https://project-id.web.app
). The other site(s) are served, but no link is shown. This should be an easy fix. (btw if you googled your way here, please know they're indeed served, good news right?)