question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`firebase deploy --only <targets>` deploying wrong targets

See original GitHub issue

Hey 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:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dzobacommented, Jul 26, 2016

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

image

0reactions
laurenzlongcommented, Jun 2, 2017
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found