Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const faunadb = require('faunadb');
require('./rooms.js')(http);

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


const toggleMaintanceMode = async (action) => {
Expand All @@ -32,7 +32,7 @@ const toggleMaintanceMode = async (action) => {
maintenance: action,
},
});
console.log('Toogle maintance mode succeded');
console.log(`Toogle maintance mode succeded, status: ${action}`);
} catch (e) {
console.error('Toggle maintance mode failed');
}
Expand Down Expand Up @@ -67,7 +67,7 @@ if (process.env.AUTO_PROMOTE) {
},
}).then(async () => {
console.log('Auto promotion succeded');
await toggleMaintanceMode(true);
// await toggleMaintanceMode(true);

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