googlecodelabs / your-first-pwapp

Code associated with Your First Progressive Web App codelab
https://g.co/codelabs/pwa
Apache License 2.0
638 stars 555 forks source link

Step 9: firebase deploy just hangs forever #105

Closed matheus-fatguys closed 5 years ago

matheus-fatguys commented 7 years ago

I tryed to follow the complete tutorial, But it fails in the last step when I try to deploy the code to firebase

I created a project on google console

I ran

npm install -g firebase-tools

firebase login firebase init

Then when I ran firebase deploy it just hangs forever.

.firebaserc: { "projects": { "default": "pwa-tutorial-4b49e" } }

firebase.json { "hosting": { "public": "work", "ignore": [ "firebase.json", "*/.", "/node_modules/" ] } }

that's firebase-debug.log:

[debug] [2017-08-28T17:42:04.736Z] ---------------------------------------------------------------------- [debug] [2017-08-28T17:42:04.744Z] Command: J:\nodejs\node-v6.11.1-win-x64\node.exe J:\nodejs\node-v6.11.1-win-x64\node_modules\firebase-tools\bin\firebase deploy [debug] [2017-08-28T17:42:04.745Z] CLI Version: 3.9.2 [debug] [2017-08-28T17:42:04.745Z] Platform: win32 [debug] [2017-08-28T17:42:04.745Z] Node Version: v6.11.1 [debug] [2017-08-28T17:42:04.747Z] Time: Mon Aug 28 2017 14:42:04 GMT-0300 (Hora oficial do Brasil) [debug] [2017-08-28T17:42:04.748Z] ---------------------------------------------------------------------- [debug] [debug] [2017-08-28T17:42:04.781Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] [debug] [2017-08-28T17:42:04.782Z] > authorizing via signed-in user [debug] [2017-08-28T17:42:04.790Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/pwa-tutorial-4b49e
Mon Aug 28 2017 14:42:04 GMT-0300 (Hora oficial do Brasil) [debug] [2017-08-28T17:42:05.920Z] <<< HTTP RESPONSE 200 [debug] [2017-08-28T17:42:05.923Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/database/pwa-tutorial-4b49e/tokens
Mon Aug 28 2017 14:42:05 GMT-0300 (Hora oficial do Brasil) [debug] [2017-08-28T17:42:07.154Z] <<< HTTP RESPONSE 200

lingoer commented 7 years ago

same issue here.

susanschen commented 6 years ago

CodeLab is missing steps between 'firebase init' and 'firebase deploy' - causing students to guess what to do. It would be helpful to include these steps in CodeLab.

I'm a newbie too, but looking at your json file, it looks like you selected 'work' folder as the public folder. Maybe that's why it's hanging.

firebase-host-public

For me, I selected 'hosting' as a feature for the first question. Then, I use the default option of using 'public' as my public folder. Next, I moved all the app files into the public folder. (Firebase generates a default index.html inside the public folder. Replace it with your own index.html) So my 'work' folder has the public folder and two firebase files. Then when I type in 'firebase deploy' it works.

landeaux commented 6 years ago

I follow all of the steps, but I just get this when I try to load the page:

772142004caa74bba0cdaed7c1552813

Gopalkataria commented 5 years ago

you must replace index.html created by firebase with the one which contains code for the main page of your app ( with the name index.html )

petele commented 5 years ago

Hi!

Thanks for the feedback. I've rewritten the codelab from scratch and believe I have fixed this issue. The code has been updated, and the new guide is now live.

If you find any issues with the new codelab, please let us know!

Thanks!

PhanithNoch commented 3 years ago

yeah I got same issue but I solved it by using command (sudo firebase deploy) on Mac