Skip to content

Commit 7af93bc

Browse files
devversionandrewseguin
authored andcommitted
build: switch to new dashboard firebase instance (#4954)
* Switches to a new Firebase instance for the Dashboard.
1 parent cebb516 commit 7af93bc

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

scripts/deploy/deploy-dashboard-functions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ cd ${dashboardFolder}
1313
# before it can collect all functions and deploy them.
1414
(cd functions; npm install)
1515

16-
if [ -z ${MATERIAL2_DASHBOARD_ACCESS_TOKEN} ]; then
16+
if [ -z ${MATERIAL2_BOARD_FIREBASE_DEPLOY_KEY} ]; then
1717
echo "Error: No access token for firebase specified." \
1818
"Please set the environment variable 'MATERIAL2_DASHBOARD_ACCESS_TOKEN'."
1919
exit 1
2020
fi
2121

2222
# Deploy the dashboard functions to Firebase. For now only the functions will be deployed.
2323
$(npm bin)/firebase deploy \
24-
--only functions --token ${MATERIAL2_DASHBOARD_ACCESS_TOKEN} --project material2-dashboard
24+
--only functions --token ${MATERIAL2_BOARD_FIREBASE_DEPLOY_KEY} --project material2-board

tools/dashboard/functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "material2-dashboard-functions",
2+
"name": "material2-board-functions",
33
"version": "0.0.1",
44
"main": "index.js",
55
"dependencies": {

tools/gulp/util/firebase.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ export function openFirebaseDashboardApp() {
1111
// Credentials need to be for a Service Account, which can be created in the Firebase console.
1212
return firebaseAdmin.initializeApp({
1313
credential: firebaseAdmin.credential.cert({
14-
project_id: 'material2-dashboard',
15-
client_email: 'firebase-adminsdk-ch1ob@material2-dashboard.iam.gserviceaccount.com',
14+
project_id: 'material2-board',
15+
client_email: 'material2-board@appspot.gserviceaccount.com',
1616
// In Travis CI the private key will be incorrect because the line-breaks are escaped.
1717
// The line-breaks need to persist in the service account private key.
18-
private_key: decode(process.env['MATERIAL2_DASHBOARD_FIREBASE_KEY'])
18+
private_key: decode(process.env['MATERIAL2_BOARD_FIREBASE_SERVICE_KEY'])
1919
}),
20-
databaseURL: 'https://material2-dashboard.firebaseio.com'
20+
databaseURL: 'https://material2-board.firebaseio.com'
2121
});
2222
}
2323

0 commit comments

Comments
 (0)