File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ cd ${dashboardFolder}
13
13
# before it can collect all functions and deploy them.
14
14
(cd functions; npm install)
15
15
16
- if [ -z ${MATERIAL2_DASHBOARD_ACCESS_TOKEN } ]; then
16
+ if [ -z ${MATERIAL2_BOARD_FIREBASE_DEPLOY_KEY } ]; then
17
17
echo " Error: No access token for firebase specified." \
18
18
" Please set the environment variable 'MATERIAL2_DASHBOARD_ACCESS_TOKEN'."
19
19
exit 1
20
20
fi
21
21
22
22
# Deploy the dashboard functions to Firebase. For now only the functions will be deployed.
23
23
$( 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
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " material2-dashboard -functions" ,
2
+ "name" : " material2-board -functions" ,
3
3
"version" : " 0.0.1" ,
4
4
"main" : " index.js" ,
5
5
"dependencies" : {
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ export function openFirebaseDashboardApp() {
11
11
// Credentials need to be for a Service Account, which can be created in the Firebase console.
12
12
return firebaseAdmin . initializeApp ( {
13
13
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' ,
16
16
// In Travis CI the private key will be incorrect because the line-breaks are escaped.
17
17
// 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 ' ] )
19
19
} ) ,
20
- databaseURL : 'https://material2-dashboard .firebaseio.com'
20
+ databaseURL : 'https://material2-board .firebaseio.com'
21
21
} ) ;
22
22
}
23
23
You can’t perform that action at this time.
0 commit comments