firebase-tools

How do I switch apps from the firebase cli?

你离开我真会死。 提交于 2019-11-29 22:05:06
This seems like something which should be pretty easy to do, but for whatever reason, I'm being defeated. I'm trying to use the firebase-tools CLI to interact with my database. I'm able to login without any trouble, and when I type firebase list , I get a list of all my current apps. It also tells me which app I'm currently connected to. My problem is, I want to connect to one of the other apps. I'm running queries on my staging app, and I need to run them on my production app. I can see the production app in the list, but I'm not finding any way to switch to that app. Thoughts? Found some

Firebase CLI: “Configure as a single-page app (rewrite all urls to /index.html)”

不羁的心 提交于 2019-11-29 05:26:51
I just used the Firebase CLI to init a static hosting project. What exactly happens when you enable the "configure as a single-page app" option? I'm looking for a description of exactly which files are modified, and what kind of effect this has on the Firebase backend. Frank van Puffelen That option simply sets a flag in the firebase.json file to redirect all URLs to /index.html . "rewrites": [ { "source": "**", "destination": "/index.html" } ] See the documentation of Firebase Hosting for more information. Full example: { "hosting": { "public": ".", "rewrites": [ { "source": "**",

How do I deploy Firebase Database Security rules using the command line?

谁说胖子不能爱 提交于 2019-11-28 23:44:11
问题 In older versions of Firebase, we could add a rules section to our firebase.json file, and upload new security rules on every deploy. How do we use the firebase-tools v3 command-line tools to deploy database security rules? This page says that it's possible: "Rules for Firebase Storage" This page hints that the command line tools can do it, but firebase --help and firebase deploy --help don't seem to hint at how to do it? (Apologies if I missed it...) (related: where is the canonical doc for

How do I switch apps from the firebase cli?

六眼飞鱼酱① 提交于 2019-11-28 18:11:26
问题 This seems like something which should be pretty easy to do, but for whatever reason, I'm being defeated. I'm trying to use the firebase-tools CLI to interact with my database. I'm able to login without any trouble, and when I type firebase list , I get a list of all my current apps. It also tells me which app I'm currently connected to. My problem is, I want to connect to one of the other apps. I'm running queries on my staging app, and I need to run them on my production app. I can see the

how to end ng serve or firebase serve

拟墨画扇 提交于 2019-11-28 15:35:15
问题 I've been doing web development with Angular2 and have been using both Angular2 and Firebase to run local servers. I haven't been able to find a command similar to typing quit when using Ionic to create a server, so I have to close the terminal tab each time. Is there a way to end the server and get my terminal tab back? Thanks. 回答1: You can use the following command to end an ongoing process: ctrl + c 回答2: Try using ctrl + c twice to get the prompt for terminating the batch job. 回答3: If ctrl

Firebase not running index.html file

我只是一个虾纸丫 提交于 2019-11-27 15:41:39
问题 I'm a pretty new programmer going through the Firebase tutorial. I have gone through steps 1-5 of the tutorial (https://codelabs.developers.google.com/codelabs/firebase-web/#5). I've added the "Add Firebase to your web app" js code to the html file, and set up the Firebase CLI. However, when I run the firebase server, everything seems to work other than it is not showing the code from the index.html file. I am in the right directory, and my console says "Server listening at: http://localhost

Angular 6.0 firebase hosting deploy not working

旧街凉风 提交于 2019-11-27 04:23:56
I am looking for a tutorial on how to properly setup the firebase-tools hosting on my angular 6.0 projects, and what I found is always like this. - firebase init - then select the Hosting - What do you want to use as your public directory? dist - Configure as a single-page app (rewrite all urls to /index.html)? Yes - Overwrite? No - ng build --prod - firebase deploy but after doing this, this is always what I've got. I found that the ng build --prod will create a dist and an another subfolder under this where the project location is. dist |--TheProject_Folder | |--assets|index.html - This

Is it possible to create a new Firebase project by API?

会有一股神秘感。 提交于 2019-11-26 21:00:37
Is it possible to create new hosting projects by API, or another non-interactive method on Google Firebase? I already tried Firebase tools with a token, but it says that it is only possible to create a new project on Firebase Console. Some context : My project allows users to create static websites online and we are searching for solutions to host these sites. Firebase would be a great solution, but only if I could integrate the user's new project into my system, with Firebase projects. Updated (2018-11-07) It is now possible to create with the Firebase Management API . Through this same API

Angular 6.0 firebase hosting deploy not working

我们两清 提交于 2019-11-26 11:06:03
问题 I am looking for a tutorial on how to properly setup the firebase-tools hosting on my angular 6.0 projects, and what I found is always like this. - firebase init - then select the Hosting - What do you want to use as your public directory? dist - Configure as a single-page app (rewrite all urls to /index.html)? Yes - Overwrite? No - ng build --prod - firebase deploy but after doing this, this is always what I\'ve got. 回答1: I found that the ng build --prod will create a dist and an another

Is it possible to create a new Firebase project by API?

不问归期 提交于 2019-11-26 07:47:09
问题 Is it possible to create new hosting projects by API, or another non-interactive method on Google Firebase? I already tried Firebase tools with a token, but it says that it is only possible to create a new project on Firebase Console. Some context : My project allows users to create static websites online and we are searching for solutions to host these sites. Firebase would be a great solution, but only if I could integrate the user\'s new project into my system, with Firebase projects. 回答1: