Skip to content
Browse files

Tweaking startupMessage

  • Loading branch information...
1 parent 2f9a690 commit cfbdc442ab3324a45a38c50755ab3e4f6951f54a @jward jward committed Dec 7, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −1 log.coffee
  2. +2 −1 server.coffee
View
2 log.coffee
@@ -5,6 +5,6 @@ class Log
console.log message...
startupMessage: (config)->
- @log clc.cyan("CloudDB.IO #{config.version}") + clc.greenBright(" (http://0.0.0.0:#{config.port})")
+ @log "\n" + clc.cyan("CloudDB.IO") + clc.greenBright(" - v#{config.version} - ") + clc.white("http://0.0.0.0:#{config.port}") + "\n"
module.exports = new Log()
View
3 server.coffee
@@ -1,10 +1,11 @@
app = require('express')()
api = require('./api')(app)
log = require('./log')
+pjson = require('./package.json')
config = {
port: 8090
- version: '0.0'
+ version: pjson.version
}
api.expose('/1/schemas', require('./schemas'))

0 comments on commit cfbdc44

Please sign in to comment.
Something went wrong with that request. Please try again.