mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-04 02:34:43 +08:00
made sure functions use live db
This commit is contained in:
parent
feb9a4fb1a
commit
ccf619da1f
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -71,3 +71,4 @@ node_modules/
|
|||
public/css/style.css
|
||||
public/css/style.css.map
|
||||
functions/serviceAccountKey.json
|
||||
functions/serviceAccountKey_live.json
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
const functions = require('firebase-functions');
|
||||
const admin = require('firebase-admin');
|
||||
|
||||
var serviceAccount = require("./serviceAccountKey.json");
|
||||
var serviceAccount = require("./serviceAccountKey_live.json");
|
||||
|
||||
admin.initializeApp({
|
||||
credential: admin.credential.cert(serviceAccount),
|
||||
databaseURL: "https://monkey-type-dev-67af4.firebaseio.com"
|
||||
databaseURL: "https://monkey-type.firebaseio.com"
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue