Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Use module export instead of json string so that we can use environme…
Browse files Browse the repository at this point in the history
…nt variable for credentials info
  • Loading branch information
passkey1510 committed Nov 7, 2013
1 parent 390c9c9 commit 3041b4f
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 80 deletions.
2 changes: 1 addition & 1 deletion config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ var _ = require('underscore');

module.exports = _.extend(
require(__dirname + '/../config/env/all.js'),
require(__dirname + '/../config/env/' + process.env.NODE_ENV + '.json') || {});
require(__dirname + '/../config/env/' + process.env.NODE_ENV + '.js') || {});
26 changes: 26 additions & 0 deletions config/env/development.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
db: "mongodb://localhost/mean-dev",
app: {
name: "MEAN - A Modern Stack - Development"
},
facebook: {
clientID: "APP_ID",
clientSecret: "APP_SECRET",
callbackURL: "http://localhost:3000/auth/facebook/callback"
},
twitter: {
clientID: "CONSUMER_KEY",
clientSecret: "CONSUMER_SECRET",
callbackURL: "http://localhost:3000/auth/twitter/callback"
},
github: {
clientID: "APP_ID",
clientSecret: "APP_SECRET",
callbackURL: "http://localhost:3000/auth/github/callback"
},
google: {
clientID: "APP_ID",
clientSecret: "APP_SECRET",
callbackURL: "http://localhost:3000/auth/google/callback"
}
}
26 changes: 0 additions & 26 deletions config/env/development.json

This file was deleted.

26 changes: 26 additions & 0 deletions config/env/production.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
db: "mongodb://localhost/mean",
app: {
name: "MEAN - A Modern Stack - Production"
},
facebook: {
clientID: "APP_ID",
clientSecret: "APP_SECRET",
callbackURL: "http://localhost:3000/auth/facebook/callback"
},
twitter: {
clientID: "CONSUMER_KEY",
clientSecret: "CONSUMER_SECRET",
callbackURL: "http://localhost:3000/auth/twitter/callback"
},
github: {
clientID: "APP_ID",
clientSecret: "APP_SECRET",
callbackURL: "http://localhost:3000/auth/github/callback"
},
google: {
clientID: "APP_ID",
clientSecret: "APP_SECRET",
callbackURL: "http://localhost:3000/auth/google/callback"
}
}
26 changes: 0 additions & 26 deletions config/env/production.json

This file was deleted.

27 changes: 27 additions & 0 deletions config/env/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
db: "mongodb://localhost/mean-test",
port: 3001,
app: {
name: "MEAN - A Modern Stack - Test"
},
facebook: {
clientID: "APP_ID",
clientSecret: "APP_SECRET",
callbackURL: "http://localhost:3000/auth/facebook/callback"
},
twitter: {
clientID: "CONSUMER_KEY",
clientSecret: "CONSUMER_SECRET",
callbackURL: "http://localhost:3000/auth/twitter/callback"
},
github: {
clientID: "APP_ID",
clientSecret: "APP_SECRET",
callbackURL: "http://localhost:3000/auth/github/callback"
},
google: {
clientID: "APP_ID",
clientSecret: "APP_SECRET",
callbackURL: "http://localhost:3000/auth/google/callback"
}
}
27 changes: 0 additions & 27 deletions config/env/test.json

This file was deleted.

0 comments on commit 3041b4f

Please sign in to comment.