Two separate apps: one on main domain one on subdomain

3,743 views
Skip to first unread message

Peter

unread,
Jan 26, 2015, 5:32:59 PM1/26/15
to fireba...@googlegroups.com
I want two separate apps on my account, with one accessed on the main domain and the other one accessed on a subdomain. 

For example, for my main domain, I need an app deployed here:
https://example.com

And I want to upload a separate app that will be accessed here:
https://fighter.example.com.

I didn't see any documentation for how to do this. How do I configure this?

(P.S. I just posted this message a few minutes ago but I don't see it, so I apologize if it shows up twice.)

Kato Richardson

unread,
Jan 27, 2015, 10:01:33 AM1/27/15
to fireba...@googlegroups.com
Hello Peter,

At present, the root domain and all subdomains point to one and exactly one Firebase app. This is primarily due to the SSL config for the app, which looks approximately like this:


So there is no way to point a subdomain to another app, since the wildcard here would conflict. A couple of alternatives would be to handle this the way Google handles mail.google.com, maps.google.com, etc (i.e. point them to a subtree on the same hosted app) or to set up a CNAME that actually redirects to a separate domain (e.g. fighter.example.com -> fighter-example.com).

Regards,
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-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/4be3c6b3-4844-42bd-a5be-80654b1dee74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Peter

unread,
Jan 27, 2015, 11:30:02 AM1/27/15
to fireba...@googlegroups.com
Thanks for the answer to my question, Kato.

I think I prefer the first option (point to a subtree on the same hosted app) since I wouldn't have to set up two separate accounts. But how do I set up the hosting part of this "subtree" app with Firebase? I take it when your use of the word "subtree" in this context you are referring to a node on the data tree. Yes?

In any case, I am still not sure how to deploy two separate apps on my Firebase account. This kind of thing is straightforward with other technologies I have worked with, even with Meteor.js and Modulus.io, both of which I am abandoning for Firebase/Angular/Polymer.


Peter

unread,
Jan 28, 2015, 7:44:00 AM1/28/15
to fireba...@googlegroups.com
Can Firebase not host two separate apps like this?

One account, let's called it MyAccount. With MyAccount, you have your hosting and data on Firebase.
The data: 
firebasedata: {
homeData: {}
fighterData:{}
}

Two separate apps:
App 1 uses homeData and is accessed on https://example.com
App 2 uses fighterData and is accessed on https://fighter.example.com 

I need to set up my app asap, so any helpful reply will be much appreciated.

Kato Richardson

unread,
Jan 28, 2015, 10:12:52 AM1/28/15
to fireba...@googlegroups.com
Peter,


Regards,
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-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.

Peter

unread,
Jan 28, 2015, 10:17:47 AM1/28/15
to fireba...@googlegroups.com
Kato, you did indeed, but I need some clarification. Could you elaborate on this a bit?
point them to a subtree on the same hosted app

Thanks.

Benjamin Such

unread,
Jan 28, 2015, 12:50:19 PM1/28/15
to fireba...@googlegroups.com
Hey Peter,

for me your attempt looks like a missconception of what you want accomplish. Every Firebase App has one database and one hosting "instance". There is no way you can access your database from another Firebase App.
Message has been deleted
Message has been deleted

Richard Brookfield

unread,
Apr 28, 2015, 12:02:16 PM4/28/15
to fireba...@googlegroups.com
Kato,

Our team is trying to move to firebase and trying to go with option 1 we do not understand how to accomplish this. I have read this thread and it still doesn't explain what that json file configuration would look like. Also, it appears with every deployment we would have to deploy all the assets for all of the sites? This is extremely difficult for use because our subdomains are different applications, with different repositories and build processes. We are only pursuing option #1 because you don't allow different apps to be tied to different sub-domains. We would really appreciate some help in this matter as our company has been looking to standardize the CDN we use for our MEAN projects. 
Reply all
Reply to author
Forward
Message has been deleted
0 new messages