jo / grunt-couch

Build and publish Couchapps and CouchDB design documents with grunt. Simple.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to use a separate file for username and password

bernharduw opened this issue · comments

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.

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 %>",
    }
});

Ok, I could have thought about that before! Thanks a lot, I'm closing this issue.