Skip to content

Commit

Permalink
Updated for Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat Patterson committed Jun 10, 2011
1 parent f08f10f commit 6493677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pg1.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var pg = require('pg');
//or native libpq bindings
//var pg = require('pg').native

var conString = "tcp://postgres:1234@localhost/postgres";
var conString = process.env.DATABASE_URL || "tcp://postgres:1234@localhost/postgres";

//error handling omitted
pg.connect(conString, function(err, client) {
Expand Down

0 comments on commit 6493677

Please sign in to comment.