From 6299a2ec50996f46a9a3304e3ad703e4e2668668 Mon Sep 17 00:00:00 2001 From: Navy Date: Sun, 6 Jun 2021 19:09:01 +0300 Subject: [PATCH] env bs --- package.json | 3 ++- start.json | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 start.json diff --git a/package.json b/package.json index 7025d17..e65e149 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "New iteration of GalacticBot", "main": "index.js", "scripts": { - "start": "node --trace-warnings index.js", + "start": "NODE_ENV=production node --trace-warnings index.js", + "dev": "NODE_ENV=development node --trace-warnings index.js", "debug": "node --trace-warnings --inspect index.js", "update": "git pull && cd api && yarn update" }, diff --git a/start.json b/start.json new file mode 100644 index 0000000..ec18142 --- /dev/null +++ b/start.json @@ -0,0 +1,12 @@ +{ + "apps": [ + { + "name": "new-gbot", + "script": "index.js", + "interpreter_args": "--trace-warnings", + "env": { + "NODE_ENV": "production" + } + } + ] +} \ No newline at end of file