Skip to content

Commit e3c158c

Browse files
author
Joe Alves
committed
Fixing database url environment variable to heroku new default
1 parent 5262658 commit e3c158c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

generated/server/db/_db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var path = require('path');
22
var Sequelize = require('sequelize');
33

44
var env = require(path.join(__dirname, '../env'));
5-
var db = new Sequelize(env.DATABASE_URI, {
5+
var db = new Sequelize(env.DATABASE_URL, {
66
logging: env.LOGGING ? console.log : false,
77
native: env.NATIVE
88
});

generated/server/env/development.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
DATABASE_URI: 'postgres://localhost:5432/fsg',
2+
DATABASE_URL: 'postgres://localhost:5432/fsg',
33
SESSION_SECRET: 'Optimus Prime is my real dad',
44
TWITTER: {
55
consumerKey: 'INSERT_TWITTER_CONSUMER_KEY_HERE',

generated/server/env/production.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
module.exports = {
10-
DATABASE_URI: process.env.DATABASE_URI,
10+
DATABASE_URL: process.env.DATABASE_URL,
1111
SESSION_SECRET: process.env.SESSION_SECRET,
1212
TWITTER: {
1313
consumerKey: process.env.TWITTER_CONSUMER_KEY,

generated/server/env/testing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
DATABASE_URI: 'postgres://localhost:5432/testing-fsg',
2+
DATABASE_URL: 'postgres://localhost:5432/testing-fsg',
33
SESSION_SECRET: 'Optimus Prime is my real dad',
44
TWITTER: {
55
consumerKey: 'INSERT_TWITTER_CONSUMER_KEY_HERE',

0 commit comments

Comments
 (0)