镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

ng deploy still doesn't work #3676

Description

@Harris6144

Hello,

Are there any plans to fix ng deploy. As it hasn't worked for a while now. The Angular documentation still says it should for deployment.

Thanks,
Harris

Activity

  1. johnmckay-reward commented on Oct 24, 2025

    @johnmckay-reward

    I believe this was intentionally removed and the guidance now is to follow this to host your angular app on firebase https://firebase.google.com/docs/hosting/frameworks/angular#initialize_a_new_project

  2. Harris6144 commented on Nov 6, 2025

    @Harris6144
    Author

    That's not the guidance from Angular: https://angular.dev/tools/cli/deployment

  3. jakehockey10 commented on Nov 21, 2025

    @jakehockey10

    This probably depends a lot on your setup, right? Is it just hosting? Functions? Storage? Firestore? I've been using the firebase-tools cli in my CI/CD pipelines for deploying the various components a given project is using.

    Also, can you describe what exactly isn't working for you when you run ng deploy? In your specific case, what are you expecting it to do and where is it failing?

  4. Harris6144 commented on Nov 24, 2025

    @Harris6144
    Author

    It's not working for any new setup. If I start a fresh new Angular project then use ng add @angular/fire, hosting isn't an option. So when you run ng deploy, it just runs ng add @angular/fire again.

  5. jakehockey10 commented on Nov 29, 2025

    @jakehockey10

    Just curious, did you also run firebase init on your project root as well? This is usually required for me to get things up and running correctly. I don't use ng deploy directly, so I can't be of much help here on this front. But I am saying that you can set up deployment, including hosting, if you use the firebase-tools cli, which I think is probably the recommended way to move forward. Can't speak for the authors though. Good luck!

  6. Harris6144 commented on Nov 29, 2025

    @Harris6144
    Author

    Yeah, that doesn't help. I know you can still deploy with firebase deploy. But the issue I'm raising is that ng deploy doesn't work on an Angular codebase, when it should.

  7. jakehockey10 commented on Dec 1, 2025

    @jakehockey10

    @Harris6144 I'd argue that it does help. I'm offering a path forward, and I think you are just making a stance on something that you know probably won't change any time soon. You do you, but I wouldn't mind still discussing this further.

    In your particular case, assuming that ng deploy at least didn't run ng add @angular/fire again, what are you expecting that one single command to do without you initializing the project using firebase-tools? In your particular case, would ng deploy ONLY pertain to hosting? Or would it magically detect what services you were using and deploy all of them that you want it to without asking any questions? What about if you were using cloud functions? In that case, you probably WOULD have initialized your project with the firebase-tools cli. I'm just trying to get a better idea of what you expect ng deploy to do.

    I understand that it isn't supposed to run ng add @angular/fire again. But I'll reiterate, I can't reproduce that for the life of me, so I'm just trying to get a better understanding of what it is failing to do on your machine and what you are expecting it to do assuming everything went the way you'd expect.

    If all you are trying to do is declare that something doesn't work and leave it at that, then let me know and I'll drop this.

  8. Harris6144 commented on Dec 1, 2025

    @Harris6144
    Author

    Sorry, I misread. It shouldn’t require firebase-tools.

    It use to be, you would run ng add @angular/fire, it would ask you to setup hosting, then you would run ng deploy and it would deploy. This is what the current Angular docs says to do. But it doesn’t work. It says nothing about firebase-tools.

  9. jakehockey10 commented on Dec 1, 2025

    @jakehockey10

    @Harris6144 Thanks for further clarifying. I need to clarify something as well: I'm currently trying to reproduce this, and ng add @angular/fire does exactly what it is supposed to, for me, on my machine. It will ask what services I want to setup and then set them up for me.

    But I still need you to clarify something for me: did ng deploy handle deploying anything and everything? Or was it just Hosting?

    I've never seen ng deploy support deploying all the other services (namely functions). I just want to confirm what you expect ng deploy to do, in detail, when its working as you'd expect. Then we can confirm that's in alignment with what ng deploy does according to the documentation.

    When I speak of using firebase-tools, that is purely to solve the deployment problem. If I read you correctly, you are now reporting two different issues you are having. One with ng add @angular/fire not doing what it is supposed to (which I cannot reproduce and use this on a weekly basis), and two, ng deploy isn't "deploying." Can you confirm that these are the TWO issues you are having? And can you further clarify what "then you would run ng deploy and it would deploy" means in terms of what it actually deployed, in detail?

  10. Harris6144 commented on Dec 1, 2025

    @Harris6144
    Author

    I'm trying to follow the Angular instructions on deployment, found here: https://angular.dev/tools/cli/deployment

    If you start a new Angular & Firebase project and follow the steps there, you'll see the issue. It doesn't deploy.

  11. jakehockey10 commented on Dec 1, 2025

    @jakehockey10

    @Harris6144 I'm going to try to ask the same question one more time. I really appreciate you continuing to respond, but if I can't get you to answer the following question, I think I might let someone else take a crack at responding to your ticket here.

    What exactly do you want `ng deploy` to deploy?  This includes listing out all the services and functionalities you are intending to deploy like Hosting, App Hosting, Functions, Storage, Firestore, Real-Time Database.
    

    If your issue is with the documentation on Angular's website being wrong, I hardly find it the fault of this @angular/fire library. It seems like you should go create a ticket on the main Angular repository to complain about their documentation not being complete.

    I would also suggest you find what ng deploy does according to this library's documentation. You might find that it doesn't do what the Angular.dev website is insinuating. I think you might come to the conclusion that the link you mention, https://angular.dev/tools/cli/deployment is not a fully encompassing tutorial on how to deploy your angular app, but more so an example of different libraries out there that help with that, but ultimately is an over-simplification.

  12. Harris6144 commented on Dec 1, 2025

    @Harris6144
    Author

    Ng deploy should deploy the Angular app to Firebase. It uploads it so it is accessible on the web. For example, other options on there are GitHub pages, which would upload it to GitHub so it's accessible there.

  13. jakehockey10 commented on Dec 1, 2025

    @jakehockey10

    @Harris6144 I'm sorry that you keep ignoring the question. I really wanted to help you. Good luck.

  14. Harris6144 commented on Dec 1, 2025

    @Harris6144
    Author

    I'm not ignoring the question at all. You asked what I'm trying to deploy, I told you.

  15. jakehockey10 commented on Dec 1, 2025

    @jakehockey10

    Let me show you what you are ignoring with a survey:

    When you run ng add @angular/fire and then immediately run ng deploy, which one of the following is supposed to be deployed to?

    • Hosting
    • App Hosting
    • Firestore
    • Real-Time Database
    • Storage
    • Cloud Functions
  16. 7 remaining items

  17. jakehockey10 commented on Dec 1, 2025

    @jakehockey10

    Would a video help?

    A video would still help if you literally don't have anything else you think you can share.

  18. Harris6144 commented on Dec 1, 2025

    @Harris6144
    Author

    No, you don't have that right.

    The original functionality was that when you typed ng deploy, it would ask you to select a project, etc, then it would deploy it. Now it just finishes the command without doing anything.

  19. jakehockey10 commented on Dec 1, 2025

    @jakehockey10

    Thank you for clarifying. A video would still be helpful.

    Are you sure there isn't any way to get more verbose output from the command?

    It's not working for any new setup. If I start a fresh new Angular project then use ng add @angular/fire, hosting isn't an option. So when you run ng deploy, it just runs ng add @angular/fire again.

    Do you see why I was confused? You claimed it runs the ng add @angular/fire command again. Now you are saying it doesn't output anything. So now we have to assume that maybe there is some logging somewhere with more information in it. Can you look for a verbose flag or any log files that were created with some more info?

  20. Harris6144 commented on Dec 1, 2025

    @Harris6144
    Author

    Sorry, it does come up with ng add options again before finishing without the deploy.

  21. Harris6144 commented on Dec 1, 2025

    @Harris6144
    Author

    By finishing the command, I meant finishing the ng add command.

  22. jakehockey10 commented on Dec 1, 2025

    @jakehockey10

    Alright. I feel like I'm being trolled here. If you send a video, that'd be helpful. But I can't help you without more information. And if you literally don't have any more information, then I guess we are done here.

  23. Harris6144 commented on Dec 1, 2025

    @Harris6144
    Author

    I feel the same.

    All you have to do is start a new angular project, try add angularfire, try ng deploy and you'll see that it doesn't deploy the Angular app to Firebase.

  24. Harris6144 commented on Dec 1, 2025

    @Harris6144
    Author

    Looks like I can't share videos here.

  25. jakehockey10 commented on Dec 1, 2025

    @jakehockey10
    Image

    Here is the additional information I needed. Do you see this warning? Here is the documentation I was telling you to go look at: https://github.com/angular/angularfire/blob/main/docs/deploy/getting-started.md.

    This warning is telling you something is missing from your project. The link I shared is telling you what needs to go there to overcome this warning.

    You are correct, the Angular documentation is misleading (like I said above). But that's not this library's fault.

  26. Harris6144 commented on Dec 1, 2025

    @Harris6144
    Author

    Well clearly that's what's broken then as it use to work.

  27. jakehockey10 commented on Dec 1, 2025

    @jakehockey10

    LOL I give up man. If this is how much work you think should go into a bug report, then you'll get as much response as you deserve

  28. Harris6144 commented on Dec 1, 2025

    @Harris6144
    Author

    I'm glad you're giving up. You've been rude and condescending from the start.

    You've literally just replicated the issue yourself and still treating me like an idiot and accusing me of doing it wrong.

  29. jakehockey10 commented on Dec 1, 2025

    @jakehockey10

    I'm sorry you feel that way. I've tried to maintain the following throughout this conversation:

    • ng deploy is a bit of a complicated matter as it can involve deploying more than just a client side angular application. Firebase involves more than just Hosting a SPA app, which is why I was trying to get a better idea of your current situation
      • There are more robust strategies for deploying firebase applications, and maybe moving away from ng deploy isn't a bad thing.
    • Your report doesn't provide any information that helps the authors and contributors of this library find the cause of the issue because the issue isn't well documented.
      • The more effort you put into a bug report, the more likely you'll get someone to do the work of investigation and resolution, for free.
    • The Angular.Dev documentation is NOT the official documentation for this library. So maybe the assumption that ng add @angular/fire and then ng deploy still working is an assumption that should not be assumed any more.

    I should have not taken my frustrations with your bug report out on you. You are free to just open a ticket that says, "This isn't working still" and not try to look into it beyond that. But I hope you understand that I was indeed trying to help, and if I came off as rude, that is on me for not expressing myself in a patient way. Your responses were indeed frustrating as it was obvious you weren't reading them fully and that you weren't willing to do any investigative work on your own for an open source library. But again, that's on me for letting it get to me that bad.

  30. sergiotome commented on Jan 15, 2026

    @sergiotome

    I just created a new angular app and added angular fire and ng deploy works correctly on my end (it publishes the app in the firebase hosting if that's what you need). Do you have the .firebasesrc and firebase.json files properly configured so that the command knows what needs to be deployed and where?

  31. Harris6144 commented on Jan 16, 2026

    @Harris6144
    Author

    I knew it was supposed to work!

    No, the Angular or Angularfire docs neither say anything about configuration files. What are they meant to be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions