andrei-tatar / nora-service

NORA backend service
https://node-red-google-home.herokuapp.com
34 stars 30 forks source link

Setting up on heroku #21

Closed realjax closed 4 years ago

realjax commented 4 years ago

I'm stuck at setting up on heroku.

I got it all deployed at heroku bu cant login to the app, it says Screenshot 2020-04-28 at 12 11 09

I added it to firebase of course as per the instructions,

Screenshot 2020-04-28 at 13 23 10

but it still doesnt work. Any idea's ?

realjax commented 4 years ago

Not sure what is going on but it seems to think it is not in production mode. the init.js from heroku still says this:

"apiKey": "xxx",
  "authDomain": "node-red-home-automation-82192.firebaseapp.com",
  "databaseURL": "https://node-red-home-automation-82192.firebaseio.com",
  "projectId": "node-red-home-automation-82192",
  "storageBucket": "node-red-home-automation-82192.appspot.com",
  "messagingSenderId": "350438145283",
  "remoteInitUrl": "/login/init.js",
  "jsBaseUrl": "https://www.gstatic.com/firebasejs/5.6.0"

which are all default settings it seems..

realjax commented 4 years ago

The logs on Heroku also say this:

Warning, FIREBASE_CONFIG and GCLOUD_PROJECT environment variables are missing

realjax commented 4 years ago

Im going to close this, this is costing me too much time.

nicandris commented 4 years ago

hey thanx for the comments. i will fix asap. can you try this?

https://github.com/andrei-tatar/nora-service/pull/20/files

during my testing i found out you also need FIREBASE_APIKEY and FIREBASE_AUTHDOMAIN but Andrei says its not needed

andrei-tatar commented 4 years ago

When you create the actions project, google automatically creates a firebase project. If you use that one, it's not needed. It's how NORA is currently deployed.

Notice the same project id in the url in actions console and firebase console.

image

image