Created
October 27, 2010 19:01
-
-
Save rsms/649715 to your computer and use it in GitHub Desktop.
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
// using a node-native Script with a new context, one can retrieve that context thus eliminating the need for "exports": | |
database = { | |
host: 'localhost', port: 1234 | |
// unixsocket: '/tmp/foo.sock' | |
} | |
debug = true | |
log_level = exports.debug ? 2 : 1 | |
cats = ['joe', 'bastard', 'busta'] |
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
[database] | |
host: localhost | |
port: 1234 | |
#unixsocket: /tmp/foo.sock | |
[general] | |
debug: true | |
log_level: 2 | |
cats: 'joe','bastard','busta' |
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
exports.database = { | |
host: 'localhost', port: 1234 | |
// unixsocket: '/tmp/foo.sock' | |
} | |
exports.debug = true | |
exports.log_level = exports.debug ? 2 : 1 | |
exports.cats = ['joe', 'bastard', 'busta'] |
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
{ | |
"database": { | |
"host": "localhost", | |
"port": 1234 | |
}, | |
"debug": true, | |
"log_level": 2, | |
"cats": ['joe', 'bastard', 'busta'], | |
} |
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
database: | |
host: localhost | |
port: 1234 | |
// unixsocket: /tmp/foo.sock | |
debug: true | |
log_level: 2 | |
cats: | |
- joe | |
- bastard | |
- busta |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment