Angular 6.0 firebase hosting deploy not working

dotGitignore :

I am looking for a tutorial on how to properly setup the firebase-tools hosting on my angular 6.0 projects, and what I found is always like this.

- firebase init 
- then select the Hosting
- What do you want to use as your public directory? dist
- Configure as a single-page app (rewrite all urls to /index.html)? Yes
- Overwrite? No
- ng build --prod
- firebase deploy

but after doing this, this is always what I've got.

default

dotGitignore :

I found that the ng build --prod will create a dist and an another subfolder under this where the project location is.

dist
|--TheProject_Folder
|  |--assets|index.html - This index html is not using.
|--index.html - This is the html generated in the firebase init

So what I did is to initialize again the firebase init and change the public directory from dist to dist/TheProject_Folder:

- What do you want to use as your public directory? dist/TheProject_Folder
- Configure as a single-page app (rewrite all urls to /index.html)? Yes
- Overwrite? No

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Hosting Angular 6 application to firebase

Using Firebase Hosting to deploy the angular application

Video Player plugin for Flutter not working correctly when deploy to Firebase hosting

angular-cli Firebase hosting Angular 2 router not working

Firebase deploy old version somehow (angular 6)

Disable Firebase hosting github deploy

angular 6, build can't load images on Firebase hosting

Firebase hosting showing welcome page after deploying angular 6 app?

angular firebase hosting unsuccessful

Firebase Hosting Deploy Error: Task 5fc... failed: retries exhausted after 6 attempts

firebase deploy hosting from remote (google storage)

Deploy website on Firebase Hosting with specific path

Deploy Nuxt 3 website to Firebase Hosting

Firebase Hosting deploy gives HTTP Error 401

Firebase hosting deploy with serviceaccount fails with 403

Firebase deploy only deploys functions but not hosting?

Firebase Hosting deploy only to sub directory

Error: hosting:channel:deploy is not a Firebase command

Firebase hosting does not deploy on custom domain

Firebase Hosting rewrites not working properly

Firebase hosting: Domain is connected but it is not working

Upload to Firebase Hosting not working correctly

How to deploy Angular Universal project to standard hosting?

using "firebase deploy" to deploy to hosting - how does firebase know if it is deploying to hosting and not cloud functions?

Angular firebase hosting AT(...)firestore is not a function

Redirect Firebase Hosting root to a Cloud Function is not working

Flutter websockets working in local web but not in Firebase Hosting

Firebase Hosting: Function not working with ServerMiddleware (Vue/ Nuxt)

nextJS api routes not working with Firebase Hosting