Firebase Deploy all necessary files and folders but direct my-app.firebaseapp.io/ to my public folder.

129 views
Skip to first unread message

pre...@live.co.uk

unread,
Nov 6, 2016, 4:57:18 PM11/6/16
to Firebase Google Group
I want to deploy a site with the a folder structure similar to below (as is standard):

/src
  /js
  /css
/public
  index.html
  etc...

but if I set hosting.public = "/public" it doesn't deploy /src
if I set hosting.public = "/" I get error "Public folder does not contain index.html and have to go to /public on the hosted site to see index.html

How do I deploy all of my files, but tell firebase to set the public(where visitors go to) folder to /public (in order to present index.html) but still link to files one level up in my file tree without visitors able to access my src files, as is standard with most site setups?

Michael Bleigh

unread,
Nov 6, 2016, 10:17:13 PM11/6/16
to Firebase Google Group

Try just "public"


--
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/6eaa3619-83fb-4beb-9af5-8da8723b6c2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

webm...@aprendahoje.org

unread,
Nov 7, 2016, 10:27:32 AM11/7/16
to Firebase Google Group
Hello,

I found this demo at github and it seems that all the files for the single-page authentication demo are sitting in /public. You may want to check it out:


Cheers,
Reply all
Reply to author
Forward
0 new messages