Option to use a separate file for username and password
bernharduw opened this issue · comments
Bernhard Gschwantner commented
When working with public repos, it would be nice to exclude the credentials from the Gruntfile and use an external file for at least username + password. This file could then be excluded from git.
Schmidt commented
Yes, this is a very common usecase. I use config for that, and in my Gruntfile
I have something like this:
grunt.initConfig({
config: require('config'),
'couch-push': {
options: {
user: "<%= config.couch.username %>",
pass: "<%= config.couch.password %>",
}
});
Bernhard Gschwantner commented
Ok, I could have thought about that before! Thanks a lot, I'm closing this issue.