Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use firebase-tools as a gulp task? #132

Closed
ghost opened this issue May 9, 2016 · 1 comment · May be fixed by Manny27nyc/firebase-tools#3
Closed

How to use firebase-tools as a gulp task? #132

ghost opened this issue May 9, 2016 · 1 comment · May be fixed by Manny27nyc/firebase-tools#3

Comments

@ghost
Copy link

ghost commented May 9, 2016

I am trying to use firebase-tools as a gulp task. I am using the following code snippet. I see that the website deploys but gulp does not exit. If I remove the deploy task, gulp exits properly. So, I am thinking something is wrong with this deploy task. Is there anything else needed for using firebase-tools as a gulp task? Thanks.

gulp.task('deploy', ['build'], function(done) {
  fbtools.deploy.hosting({
    firebase: 'myfb',
    token: process.env.FIREBASE_TOKEN,
    public: 'public'
  }).then(function() {
    console.log('Website has been deployed to https://myfb.firebaseapp.com');
    done();
  }).catch(function(err) {
    done(error && error.err);
  });
});

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant