Skip to content

Instantly share code, notes, and snippets.

@rsvalerio
Created May 5, 2013 16:27
Show Gist options
  • Save rsvalerio/5521304 to your computer and use it in GitHub Desktop.
Save rsvalerio/5521304 to your computer and use it in GitHub Desktop.
couchapp grunt task
grunt.registerTask('deploy', [
'build',
'push'
]);
grunt.registerTask('push', 'push app to couchdb', function () {
var done = this.async();
// require('child_process').exec('couchapp push couchapp.dist.conf.js http://10.16.200.21:5985/cosmos', function (err, stdout) {
require('child_process').exec('node_modules/couchapp/bin.js push couchapp.conf.js http://localhost:5984/ad', function (err, stdout) {
// require('child_process').exec('couchapp push couchapp.conf.js http://172.24.0.19/cosmos', function (err, stdout) {
grunt.log.write(stdout);
done(err);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment