grunt-heroku
v0.2.1
Published
Heroku commands for Grunt
Downloads
8
Readme
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 Herokuargs
: The arguments to pass tocmd
(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: {}
}
});