Skip to content
Matt Borja edited this page Dec 14, 2013 · 6 revisions

See the samples/config directory for configuration samples. If you are test driving this application, you can easily do cd node-mmo; mkdir -p config; cp -R samples/config/* config/ to use the samples provided.

node-mmo implements the yaml-config module which allows you to manage your node.js app configuration based on NODE_ENV.

The following default configuration files are specific to node-mmo and are provided to help you get your application started.

config/default.yml

default:

test:

production:

config/couchbase.js

default:
   mainBucket:
      server: 'localhost:8091'
      bucket: 'node-mmo'
      password: ''

test:
   mainBucket:
      server: 'localhost:8091'
      bucket: 'node-mmo'
      password: ''

production:
   mainBucket:
      server: 'localhost:8091'
      bucket: 'node-mmo'
      password: ''

For documentation on writing config files in yaml-config, see https://github.com/rjyo/yaml-config-node

Clone this wiki locally