-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
15. Deploy your web app to Firebase Hosting #9
Comments
Thanks @AndreSand. You saved the day. |
This is a very good point @AndreSand, thanks for reporting! There's a new process for publishing codelabs that I need to look into, but I'll add the In the meantime, I'll leave this issue open so others can find it. |
I suspect the firebase.json is missing an extra
|
@megataps @ditman Thank you for creating the CodeLab tutorial! I was able to follow the tutorial to create this demo app: https://happy-hour-san-jose.web.app/#/ |
Thank you @AndreSand indeed they are missing that step, I also see some errors like they mention develop section where it should be Build and database where it should be Cloud Firestore, thanks for reporting this, I wonder why they haven't updated it |
Thanks for the report. An update is in progress. |
I had a difficult time getting this step working. This surprised me because when I ran the Firebase web codelab "Friendly Chat" last week, deploying the app went very smoothly. Anyhow, I think the main issue was my answers to the 'firebase init hosting' prompts. I tried several different things for the "public directory" directory and only after comparing my directory tree to the 'done' branch did I realize that the 'build' dir was built during the deployment. Anyhow, here are the details of what I did to get it working in case it helps others or is deemed worthy of being added to the instructions: **\friendlyeats-flutter2> flutter clean # Suggested by earlier comments in this issue (9) Any suggestions for the proper answer to the two 'overwrite?' questions? |
Hi, it looks like in the CodeLab: Multi-platform Firestore Flutter, step 15 is missing this command
firebase init hosting
.https://codelabs.developers.google.com/codelabs/friendlyeats-flutter?hl=en&continue=https%3A%2F%2Fcodelabs.developers.google.com%2F%3Fcat%3Dflutter#14
Commands:
flutter build web
firebase init hosting
3.
firebase deploy --only hosting
If we don't run the command
firebase init hosting
we get the below error:Thanks,
Andres
The text was updated successfully, but these errors were encountered: