Skip to content

Commit 4d4d082

Browse files
author
HuangHaoqi
committed
version control
1 parent 7dcc791 commit 4d4d082

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
keys.js
1+
dev.js
22
node_modules

config/keys.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// keys.js - figure out what set of credentials to return
2+
if (process.env.NODE_ENV === 'production') {
3+
// we are in production - return the prod set of keys
4+
module.exports = require('./prod');
5+
} else {
6+
// we are in development - return the dev keys!!!
7+
module.exports = require('./dev');
8+
}

config/prod.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
module.exports={
3+
googleClientID:process.env.GOOGLE_CLIENT_ID,
4+
googleClientSecret:process.env.GOOGLE_CLIENT_SECRET,
5+
mongoURI:process.env.MONG_URI,
6+
cookieKey:process.env.COOKIE_KEY
7+
};

0 commit comments

Comments
 (0)