Skip to content

Commit

Permalink
improved settings
Browse files Browse the repository at this point in the history
  • Loading branch information
gabipurcaru committed Mar 1, 2012
1 parent fbe3321 commit e6e3657
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@ exports.USER_EMAILS = [
'gabi@purcaru.com',
'deemarklit@gmail.com',
];
exports.SKIP_LOGIN = process.env.SKIP_LOGIN || true;
if('SKIP_LOGIN' in process.env || !('MONGOLAB_URI' in process.env)) {
// skip login if on local server or explicitly set
exports.SKIP_LOGIN = true;
} else {
exports.SKIP_LOGIN = false;
}

0 comments on commit e6e3657

Please sign in to comment.