Firebase not running index.html file

前端 未结 17 2453
遥遥无期
遥遥无期 2020-12-09 02:24

I\'m a pretty new programmer going through the Firebase tutorial. I have gone through steps 1-5 of the tutorial (https://codelabs.developers.google.com/codelabs/firebase-web

相关标签:
17条回答
  • 2020-12-09 02:55

    Please follow the step

    npm install -g firebase-tools
    

    If you already have a dist folder, remove it from directory

    firebase login
    ng build --prod
    firebase init
    firebase deploy
    
    0 讨论(0)
  • 2020-12-09 02:56

    For deploying Angular application to Firebase simple and quick tutorial you can find here.

    During the process of firebase init, type N, when the question "File dist/index.html already exists. Overwrite?" appears, and your page will be displayed as it should be.

    0 讨论(0)
  • 2020-12-09 02:56

    index.html file has that firebase default information.That's why it is showing that information. Copy and paste index.html from your original angular file and paste it to dist index.html. This fixed my issue.

    0 讨论(0)
  • 2020-12-09 03:01

    You should add your files to public directory folder before deploy it into firebase server(your app's index file should be there).

    0 讨论(0)
  • 2020-12-09 03:03
    npm install -g firebase-tools
    firebase login
    firebase init
    firebase deploy
    firebase open 
    

    Select the following after scrolling down

      Hosting: Deployed Site
    
    0 讨论(0)
  • 2020-12-09 03:07

    Delete the index.html which is present in dist folder.

    Then run the following commands:

    firebase login
    
    ng build --prod
    
    firebase init
    
    firebase deploy
    
    0 讨论(0)
提交回复
热议问题