Skip to content

guestful/grunt-heroku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-heroku

Heroku commands for Grunt

Getting Started

This plugin requires Grunt ~0.4.0.

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-git --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-heroku');

The hrun Task

Run a command on Heroku.

Run Options

  • cmd: The command to run on Heroku
  • args: The arguments to pass to cmd (optional)
grunt.initConfig({
  hrun: {
    your_target: {
      cmd: 'command',
      args: ['arg1', 'arg2']
    }
  }
});

The hdeploy Task

Use git to deploy your app to Heroku.

Deploy Options

  • remote: The remote to push to. (optional, default: heroku)
  • branch: Which branch to push. (optional, defualt: master)
grunt.initConfig({
  hdeploy: {
    staging: {
      remote: 'staging',
      branch: 'master
    },
    production: {}
  }
});