Firebase Hosting - Do folders/files need to get on Google Cloud?

650 views
Skip to first unread message

Lavanya Rajnikanth

unread,
Nov 11, 2016, 6:47:51 AM11/11/16
to Firebase Google Group
Hi Firebase Team,

I have setup Firebase following the tutorials. I can view the website through LocalHost:5000 and also through the Firebase Console. Before I proceed to connect a custom domain, am I missing something?

The html / css / javascript files are currently on 'public folder' on my computer as it is a completely hand-coded website. Do the folder/files need to get on Google Cloud / Storage? 

Your answer is appreciated.






Kato Richardson

unread,
Nov 11, 2016, 3:21:11 PM11/11/16
to Firebase Google Group
Hi Lavanya,

Great to meet you. Thanks for tinkering around with Firebase!

The procedure to deploy your site is outlined here. Once you've gotten that up and running, and can view your content at https://<project id>.firebaseapp.com, then you should go ahead and proceed with setting up the custom domain (which takes a day or two to get verified and provisioned, btw).

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/5a4e36a1-fdbd-4069-ac42-b5302096a41d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Lavanya Rajnikanth

unread,
Nov 11, 2016, 8:45:05 PM11/11/16
to Firebase Google Group
The reason I ask this question is that I am able to access the website through my project.firebaseapp.com on the safari browser on my iPhone with the internet turned off on the computer. Is there not a need to communicate with the location where the files are stored? In this case locally on the computer?
Does this mean once I connect a custom domain I am good to go? What am I missing here?

Lavanya Rajnikanth

unread,
Nov 12, 2016, 11:44:49 AM11/12/16
to Firebase Google Group
Thank you Kato.

Yes, I can view the content in https://<project id>.firebaseapp.com. My confusion was how firebase could read the files on my local storage with the computer turned off. The html / css / javascript files are currently on 'public folder' on my computer as it is a completely hand-coded website. Maybe my understanding of the process is not thorough.
Anyways, since I can view the content on https://<project id>.firebaseapp.com I am assuming I can connect it to a custom domain. Thank you for your time.



On Saturday, November 12, 2016 at 1:51:11 AM UTC+5:30, Kato Richardson wrote:
Hi Lavanya,

Great to meet you. Thanks for tinkering around with Firebase!

The procedure to deploy your site is outlined here. Once you've gotten that up and running, and can view your content at https://<project id>.firebaseapp.com, then you should go ahead and proceed with setting up the custom domain (which takes a day or two to get verified and provisioned, btw).

☼, Kato
On Fri, Nov 11, 2016 at 3:06 AM, Lavanya Rajnikanth <base...@gmail.com> wrote:
Hi Firebase Team,

I have setup Firebase following the tutorials. I can view the website through LocalHost:5000 and also through the Firebase Console. Before I proceed to connect a custom domain, am I missing something?

The html / css / javascript files are currently on 'public folder' on my computer as it is a completely hand-coded website. Do the folder/files need to get on Google Cloud / Storage? 

Your answer is appreciated.






--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/5a4e36a1-fdbd-4069-ac42-b5302096a41d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tommie N. Carter, Jr.

unread,
Nov 12, 2016, 5:02:13 PM11/12/16
to Firebase Google Group
Hi Lavanya,

I'm new to Firebase but I believe that you may want to refer to the persistenceEnabled property on the FIRDatabase object (http://cocoadocs.org/docsets/FirebaseDatabase/3.1.0/Classes/FIRDatabase.html#//api/name/persistenceEnabled).

Hope that helps.
Good luck.
Tommie

Chris Raynor

unread,
Nov 13, 2016, 2:51:50 AM11/13/16
to Firebase Google Group
Hey Lavanya,

One of the steps of the tutorial you mentioned must have been to run the command 'firebase deploy'. This would have uploaded your files to our servers so we can host it for you (deploying the files). You need to do this each time you have a change to your local files for the changes to show up on Firebase Hosting (either https://<project id>.firebaseapp.com or any custom domain you add) - though you can use 'firebase serve' to preview them on localhost so you don't have to deploy just to test things out

One more note, each time you run 'firebase deploy' it will rewrite everything that's on Firebase Hosting with what's in the folder you're deploying - so make sure you have everything in source control somewhere and always deploy the whole folder.

Chris
Engineer @ Firebase

p.s. Tommie's talking about the Firebase Realtime Database iOS client, which is completely unrelated to the Firebase Hosting product

Lavanya Rajnikanth

unread,
Nov 14, 2016, 10:10:02 AM11/14/16
to Firebase Google Group
Thank you Chris. This clarifies my questions, so far it has turned out to be good, hosting with Firebase has been easier than I thought.

Cheers!
Lavanya
Reply all
Reply to author
Forward
0 new messages