This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Correctly part MySQL hostnames. Fixes #8.

  • Loading branch information...
callahad committed May 30, 2012
1 parent 4d855f0 commit 3cb4b803c89c13473c70ef14e1ee6d93653811f1
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.host;
+ 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 3cb4b80

Please sign in to comment.