ng deploy still doesn't work
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
If there was an error message, I would have posted one.
Okay, so to summarize:
- You aren't getting an error
ng deploy"isn't working" because it is somehow just runningng add @angular/fireagain instead of "deploying to Firebase"- When you run this on your machine, there is literally nothing else that happens on screen that could help someone try to help you resolve this?
Do I have this right?
Would a video help?
A video would still help if you literally don't have anything else you think you can share.
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.
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 runng deploy, it just runsng add @angular/fireagain.
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?
Sorry, it does come up with ng add options again before finishing without the deploy.
By finishing the command, I meant finishing the ng add command.
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.
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.
Looks like I can't share videos here.
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.
Well clearly that's what's broken then as it use to work.
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
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.
I'm sorry you feel that way. I've tried to maintain the following throughout this conversation:
ng deployis 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 deployisn't a bad thing.
- There are more robust strategies for deploying firebase applications, and maybe moving away from
- 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/fireand thenng deploystill 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.
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?
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?