Set env to node_env for the server
This commit is contained in:
parent
27462b0615
commit
f2efc4e37b
@ -5,3 +5,4 @@ DB_PORT=bla
|
|||||||
DB_USER=bla
|
DB_USER=bla
|
||||||
DB_PASSWORD=bla
|
DB_PASSWORD=bla
|
||||||
DB_NAME=bla
|
DB_NAME=bla
|
||||||
|
NODE_ENV=production
|
@ -9,6 +9,7 @@ const PORT = process.env.APP_PORT || 4010;
|
|||||||
|
|
||||||
const app = createExpressServer({
|
const app = createExpressServer({
|
||||||
controllers: [__dirname + "/controllers/*.ts"],
|
controllers: [__dirname + "/controllers/*.ts"],
|
||||||
|
development: process.env.NODE_ENV === "production",
|
||||||
});
|
});
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user