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