Search code examples
firebasefirebase-hosting

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?


Solution

  • 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