`firebase deploy --only <targets>` deploying wrong targets
See original GitHub issueHey folks - when I try to deploy my dev environment using firebase deploy --only default
, it deploys to my production environment instead. Yikes!
Not sure what’s going on here. I’ve created two firebases, exampleapp-dev
and exampleapp-prod
.
Here’s what my .firebaserc
looks like:
{
"projects": {
"default": "exampleapp-dev",
"prod": "exampleapp-prod"
}
}
Here’s the output of running firebase deploy --only default
:
ken@isaac ~/d/firebase-tools-bug> firebase deploy --only default
=== Deploying to 'exampleapp-prod'...
i deploying
i starting release process (may take several minutes)...
✔ Deploy complete!
Dashboard: https://console.firebase.google.com/project/exampleapp-prod/overview
I’m using firebase-tools
version 3.0.4
and fish 2.2.0
, but works the same in bash.
Any thoughts?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Deploy targets | Firebase Documentation - Google
Deploy targets are useful when you have multiple Hosting sites, multiple Cloud Storage ... so you only need to set up deploy targets...
Read more >Firebase cannot understand what targets to deploy
$ firebase deploy Error: Cannot understand what targets to deploy. Check that you specified valid targets if you used the --only or --except ......
Read more >Firebase deployment error - Google Groups
Error: Cannot understand what targets to deploy. Check that you specified valid targets if you used the --only or --except flag. Otherwise, check...
Read more >Delivery pipeline and target configuration - Google Cloud
For simplicity, only one target is shown in this example, but there can be ... the standard deployment strategy is used, with verification...
Read more >Solved: No option to select firebase hosting target with f...
The firebase deployment pipe plugin currently does not seem to have. ... Error: Deploy target repo-name not configured for project firebase-project.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I just ran into the same issue. Thanks @kenhoff for reporting this before me! Yes I agree, could definitely use some more documentation. The CLI doesn’t mention the --project option
@JasonGoemaat Please see @mbleigh 's comment on https://github.com/firebase/firebase-tools/issues/241