firebase deploy: wrong index.html executed.

1,056 views
Skip to first unread message

Art Freeman

unread,
Feb 6, 2017, 10:58:18 PM2/6/17
to Firebase Google Group
Just created a new project.  firebase-init: public directory set to '/dist' (where my source files are, including index.html).  The uploaded instance shows that it uploaded the correct number of files, and so I'm assuming that my index.html was uploaded as well.  But when I fireup my hosting url, it executes the default ('hello') index.html file, not mine.   Was my index.html file overwritten?  If so, why? 

Chris Raynor

unread,
Feb 6, 2017, 11:04:01 PM2/6/17
to Firebase Google Group
Hi Art,

When you run `firebase init` it prompts you for a few actions - one of those actions (streamlined for new projects / inexperienced users) is to ask if you want to set up a default index.html as a jumping off point. I suspect that's where it got overwritten. You can verify this by checking the index.html you have on disk locally - if it's the default file then that's probably what happened.

If you revert that file then the deploy will not alter your files

Chris

On Mon, Feb 6, 2017 at 7:58 PM Art Freeman <a...@lotusmultimedia.com> wrote:
Just created a new project.  firebase-init: public directory set to '/dist' (where my source files are, including index.html).  The uploaded instance shows that it uploaded the correct number of files, and so I'm assuming that my index.html was uploaded as well.  But when I fireup my hosting url, it executes the default ('hello') index.html file, not mine.   Was my index.html file overwritten?  If so, why? 

--
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/cafbe793-a9e9-49bc-8c79-8e3047d4b367%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Art Freeman

unread,
Feb 7, 2017, 12:20:05 PM2/7/17
to Firebase Google Group
That was it!   Thanks, Chris!
Reply all
Reply to author
Forward
0 new messages