Configuration (.kansorc)

You can configure your project in a .kansorc at its root to simplify some common operations. .kansorc is just a javascript module that exports a few settings.

Note Don't forget to add .kansorc to your .gitignore. We don't want any secrets on the wrong hands.

Saved Environments

exports.env = {
    // the default env will be used when you just do "kanso push"
    'default': {
        db: 'http://username:password@hostname:5984/dbname' 
    },
    // you can also define named environments this one will 
    // be used when you do "kanso push production"
    'production': {
        db: 'http://username:password@production-hostname:5984/production-db',        
        // tells the module package to minify modules.js
        minify: true,
        // useful when running behind a virtual host and 
        // you want to force the baseURL to something
        baseURL: '/foo'
    }
};

Using Development Packages

// extra paths to load packages from. this is useful when
// you're actively hacking on a dependency and want to
// just require it from a git checkout or something
exports.package_paths = [
    '/path/to/dev-packages'
];