-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
16 lines (15 loc) · 727 Bytes
/
Copy pathconfig.js
File metadata and controls
16 lines (15 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var config = module.exports = {}
var node_env = process.env.NODE_ENV || "development"
if (node_env === "development") {
var dotenv = require('dotenv').config()
config.connectionString = "postgres://localhost/AspirationalVegetables";
config.facebookReturn = "http://localhost:3000/login/facebook/return"
} else if (node_env === "production") {
config.connectionString = "postgres://" +
process.env.RDS_USERNAME + ":" +
process.env.RDS_PASSWORD + "@" +
process.env.RDS_HOSTNAME + ":" +
process.env.RDS_PORT + "/" +
process.env.RDS_DB_NAME
config.facebookReturn = process.env.FACEBOOK_RETURN
}