mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-22 15:53:08 +02:00
fix: default to production
This commit is contained in:
parent
adab3831fa
commit
f97a7ab61c
@ -22,6 +22,7 @@ const env = {
|
|||||||
HTTP_HOST: '0.0.0.0',
|
HTTP_HOST: '0.0.0.0',
|
||||||
HTTP_PORT: 8080,
|
HTTP_PORT: 8080,
|
||||||
HTTP_TRUST_PROXY: false,
|
HTTP_TRUST_PROXY: false,
|
||||||
|
NODE_ENV: 'production', // not bot-specific
|
||||||
OVERRIDE_ARCHIVE: '',
|
OVERRIDE_ARCHIVE: '',
|
||||||
PUBLIC_BOT: false,
|
PUBLIC_BOT: false,
|
||||||
PUBLISH_COMMANDS: false,
|
PUBLISH_COMMANDS: false,
|
||||||
|
@ -37,7 +37,7 @@ if (!semver.satisfies(process.versions.node, pkg.engines.node)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// this could be done first, but then there would be no banner :(
|
// this could be done first, but then there would be no banner :(
|
||||||
process.env.NODE_ENV ??= 'development'; // make sure NODE_ENV is set
|
process.env.NODE_ENV ??= 'production'; // make sure NODE_ENV is set
|
||||||
require('./env').load(); // load and check environment variables
|
require('./env').load(); // load and check environment variables
|
||||||
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
Loading…
Reference in New Issue
Block a user