Created
May 5, 2013 16:27
-
-
Save rsvalerio/5521304 to your computer and use it in GitHub Desktop.
couchapp grunt task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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