Skip to content

Commit c8ce07e

Browse files
authored
Merge pull request #52 from encap/dev
don't turn on maintance mode automatically
2 parents 183a21e + 4920afa commit c8ce07e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const faunadb = require('faunadb');
1414
require('./rooms.js')(http);
1515

1616
const PROD = process.env.PRODUCTION;
17-
console.log(`Environment ${PROD || 'DEV'}`);
17+
console.log(`Environment ${PROD ? 'PRODUCTION' : 'DEVELOPMENT'}`);
1818

1919

2020
const toggleMaintanceMode = async (action) => {
@@ -32,7 +32,7 @@ const toggleMaintanceMode = async (action) => {
3232
maintenance: action,
3333
},
3434
});
35-
console.log('Toogle maintance mode succeded');
35+
console.log(`Toogle maintance mode succeded, status: ${action}`);
3636
} catch (e) {
3737
console.error('Toggle maintance mode failed');
3838
}
@@ -67,7 +67,7 @@ if (process.env.AUTO_PROMOTE) {
6767
},
6868
}).then(async () => {
6969
console.log('Auto promotion succeded');
70-
await toggleMaintanceMode(true);
70+
// await toggleMaintanceMode(true);
7171

7272
// cannot process.exit(0) becouse heroku will restart anyway
7373
}).catch(() => {

0 commit comments

Comments
 (0)