Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit 9588c83

Browse files
author
Matt Moran
committed
test(deploy): test travis deploy to firebase 5
test travis deploy to firebase 5
1 parent ae9d164 commit 9588c83

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/deploy.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ var branch = process.env.TRAVIS_BRANCH,
77
var token = process.env.FIREBASE_TOKEN
88

99
function deployToFirebase(project) {
10+
exec("firebase use default && firebase deploy --token " + token, function(error, stdout, stderr) {
11+
console.log(error);
12+
console.log(stdout);
13+
console.log(stderr);
14+
});
15+
16+
17+
18+
/*
1019
return new Promise(function (resolve, reject) {
1120
console.log('Deploying to firebase project openforge-'+project);
1221
@@ -16,7 +25,6 @@ function deployToFirebase(project) {
1625
} else {
1726
child = exec("firebase use production && firebase deploy --token " + token);
1827
}
19-
child = exec('npm run firebase:deploy:'+project);
2028
2129
child.stdout.on('data', function (data) {
2230
process.stdout.write(data);
@@ -31,6 +39,7 @@ function deployToFirebase(project) {
3139
resolve('Firebase deployed successfully');
3240
});
3341
});
42+
*/
3443
}
3544

3645
if (

0 commit comments

Comments
 (0)