Grunt BitBalloon Deploy Task


Grunt Logo

Grunt has quickly become the standard build-tool for the front-end world, with a huge ecosystem with hundreds of plugins you can use to automate just about anything.

Today we’re adding one more to the list: grunt-bitballoon.

The BitBalloon Grunt plugin makes it straight forward to deploy to BitBalloon straight from your Gruntfile. It’s a multi-task plugin, so you can easily setup development, staging and production targets.

Here’s a simple example of a Gruntfile using the plugin to setup a separate dev and prod target:

grunt.initConfig({
  bb: grunt.file.readJSON('./grunt-bitballoon.json'),
  bitballoon: {
    options: {
      token: '<%= bb.token %>',
      src: 'dist'
    },
    dev: {
      site: "http://my-staging-site.bitballoon.com"
    },
    prod: {
      site: "http://my-production-site.bitballoon.com"
    }
  }
});

grunt.registerTask('deploy', [
  'bitballoon:prod'
]);

Get all the details in our grunt-bitballoon docs


Interested in Continuous Deployment?

We now recommend using netlify for Continuous Deployment.
It's our premium hosting platform and makes settings up continuous deployment of any static site as simple as it gets.

Get started now