Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4920afa

Browse files
author
Bot
committed
don't turn on maintance mode automatically
1 parent f7199ee commit 4920afa

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)

AltStyle によって変換されたページ (->オリジナル) /