Skip to content

Deploying on firebase gives welcome screen #55

@amitbravo

Description

@amitbravo

I got this message after deploying app on firebase .
screenshot 2019-01-22 at 2 20 16 pm

I want to host my app on firebase.

I followed these steps.

  1. npm run build and it created build folder
  2. firebase init , select hosting ,
  3. What do you want to use as your public directory? build
  4. Configure as a single-page app (rewrite all urls to /index.html)? Yes
  5. File build/index.html already exists. Overwrite? No
  6. and then finally firebase deploy
    after sometime I see files uploaded successfully and in firebase hosting dashboard it shows files uploaded something like 727 . but app looks something like a welcome message "Welcome Firebase Hosting Setup Complete . You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!"

however, if I create a react app using create-react-app , and follow same steps , its working fine at same url and host. it display app at once without a problem.

my firebase.json

{
  "hosting": {
    "public": "build",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions