diff --git a/scripts/deploy/deploy-dashboard-functions.sh b/scripts/deploy/deploy-dashboard-functions.sh index 9272f4de729d..b5948c5bdc5e 100755 --- a/scripts/deploy/deploy-dashboard-functions.sh +++ b/scripts/deploy/deploy-dashboard-functions.sh @@ -13,7 +13,7 @@ cd ${dashboardFolder} # before it can collect all functions and deploy them. (cd functions; npm install) -if [ -z ${MATERIAL2_DASHBOARD_ACCESS_TOKEN} ]; then +if [ -z ${MATERIAL2_BOARD_FIREBASE_DEPLOY_KEY} ]; then echo "Error: No access token for firebase specified." \ "Please set the environment variable 'MATERIAL2_DASHBOARD_ACCESS_TOKEN'." exit 1 @@ -21,4 +21,4 @@ fi # Deploy the dashboard functions to Firebase. For now only the functions will be deployed. $(npm bin)/firebase deploy \ - --only functions --token ${MATERIAL2_DASHBOARD_ACCESS_TOKEN} --project material2-dashboard + --only functions --token ${MATERIAL2_BOARD_FIREBASE_DEPLOY_KEY} --project material2-board diff --git a/tools/dashboard/functions/package.json b/tools/dashboard/functions/package.json index bf5530e38ebe..05380e83503f 100644 --- a/tools/dashboard/functions/package.json +++ b/tools/dashboard/functions/package.json @@ -1,5 +1,5 @@ { - "name": "material2-dashboard-functions", + "name": "material2-board-functions", "version": "0.0.1", "main": "index.js", "dependencies": { diff --git a/tools/gulp/util/firebase.ts b/tools/gulp/util/firebase.ts index ff2f3321dfd4..7e852907e753 100644 --- a/tools/gulp/util/firebase.ts +++ b/tools/gulp/util/firebase.ts @@ -11,13 +11,13 @@ export function openFirebaseDashboardApp() { // Credentials need to be for a Service Account, which can be created in the Firebase console. return firebaseAdmin.initializeApp({ credential: firebaseAdmin.credential.cert({ - project_id: 'material2-dashboard', - client_email: 'firebase-adminsdk-ch1ob@material2-dashboard.iam.gserviceaccount.com', + project_id: 'material2-board', + client_email: 'material2-board@appspot.gserviceaccount.com', // In Travis CI the private key will be incorrect because the line-breaks are escaped. // The line-breaks need to persist in the service account private key. - private_key: decode(process.env['MATERIAL2_DASHBOARD_FIREBASE_KEY']) + private_key: decode(process.env['MATERIAL2_BOARD_FIREBASE_SERVICE_KEY']) }), - databaseURL: 'https://material2-dashboard.firebaseio.com' + databaseURL: 'https://material2-board.firebaseio.com' }); }