Heroku commands for Grunt
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');
Run a command on Heroku.
cmd
: The command to run on Herokuargs
: The arguments to pass tocmd
(optional)
grunt.initConfig({
hrun: {
your_target: {
cmd: 'command',
args: ['arg1', 'arg2']
}
}
});
Use git
to deploy your app to Heroku.
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: {}
}
});