Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase deploy displays Welcome Screen with no App Content

I cloned a quickstart angular application. I run firebase init and firebase deploy, and output shows deploy successful. I naviagate to the url, but it just shows the Welcome screen. Why don't I see my content?

like image 533
Elliott Beach Avatar asked Dec 20 '16 20:12

Elliott Beach


2 Answers

After running: firebase init Few questions will be asked and Reply(In Bold) as follows:

  1. Are you ready to proceed? : Yes
  2. Which Firebase CLI features do you want to set up for this folder? Press Space to select features, then Enter to confirm your choices. : Hosting: Configure and deploy Firebase Hosting sites

=== Project Setup

  1. Select a default Firebase project for this directory: Your firebase Project name

=== Hosting Setup

  1. What do you want to use as your public directory? dist
  2. Configure as a single-page app (rewrite all urls to /index.html)? No
  3. File dist/404.html already exists. Overwrite? No
  4. File dist/index.html already exists. Overwrite? No

-----Firebase initialization complete!-----

Now Re-run your app using: ng build (Imp step)

----Deploy----

firebase deploy

like image 196
Saily Jadhav Avatar answered Sep 19 '22 15:09

Saily Jadhav


The repo I cloned didn't place an index.html file in the /dist directory. The welcome screen is the default index.html that firebase creates.

like image 31
Elliott Beach Avatar answered Sep 18 '22 15:09

Elliott Beach