Permalink
Browse files

fix ENV hostname lookup

hostName was returning null, according to http://nodejs.org/docs/latest/api/url.html hostname is what we want here I think
  • Loading branch information...
1 parent d428f7c commit 3bed4561fe83ff833e52f43ad056c1fe9613a8b9 @themgt themgt committed Mar 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/db.js
View
@@ -13,7 +13,7 @@ db_name = 'eyedeeme';
if (process.env['MYSQL_URL']) {
var u = url.parse(process.env['MYSQL_URL']);
- db_host = u.hostName;
+ db_host = u.hostname;
db_port = u.port || db_port;
db_user = u.auth.split(':')[0];
db_pass = u.auth.split(':')[1];

0 comments on commit 3bed456

Please sign in to comment.