-
Notifications
You must be signed in to change notification settings - Fork 976
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
.firebaserc and firebase cli completely ignored #2558
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
|
Something I didn't clarify, dev-land-9008c is not the same project as dev-land. Completely different projects! |
@elucidsoft ok it sounds like at the very least we need to improve our logging messages! It may also be a bug, @bkendall can comment on that. When you create a new Firebase Project there is exactly one "site". However you can have more than one site per project: So changes we could make:
|
Hi this is working (ish) as intended -- the real question is how the Firebase Hosting supports multiple sites in a single project directory through two mechanisms: I agree with Sam that we should consider erroring out if the |
I don't recall ever adding that sites line but honestly I can't say with any degree of certainty that a tool added it or I did. |
If you have a .firebaserc file setup
And have a firebase.json like this
Some firebase command or process puts the "site": "dev-land-9008c", line in there, not sure what does it. Doesn't really matter. What matters is the behaviors observed when this line exists. This line overrides .firebaserc, and also overrides ALL cli commands.
if you run:
firebase use dev
the CLI reports back that it successfully switched to 'dev-land'If you then run
firebase deploy
it will say '=== Deploying to dev-land...' but then in the status updates it will say 'Deployed successfully to 'dev-land-9008c'.If you run
firebase deploy --project dev-land
same thing, it reports its deploying to 'dev-land' but deploys to 'dev-land-9008c' instead.If you delete .firebaserc, and redo all of it using
firebase use --add
, same behavior.If you run
firebase use --clear
, same behavior.If you re-run
firebase init
, same behavior.Needless to say this took me over 3 hours to find, EXTREMELY frustrating. It started in my CI/CD pipeline, I spent 2 hours there, then noticed it was happening locally. Like I said I have no idea what adds the site line to firebase.json but that line shouldn't exist. Especially with the aliasing, and .firebaserc. That should be removed entirely, beyond confusing.
The text was updated successfully, but these errors were encountered: