aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/core-utils.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/helpers/core-utils.ts b/server/helpers/core-utils.ts
index 305d3b71e..b1e9af0a1 100644
--- a/server/helpers/core-utils.ts
+++ b/server/helpers/core-utils.ts
@@ -134,6 +134,10 @@ function isProdInstance () {
134 return process.env.NODE_ENV === 'production' 134 return process.env.NODE_ENV === 'production'
135} 135}
136 136
137function getAppNumber () {
138 return process.env.NODE_APP_INSTANCE
139}
140
137function root () { 141function root () {
138 // We are in /helpers/utils.js 142 // We are in /helpers/utils.js
139 const paths = [ __dirname, '..', '..' ] 143 const paths = [ __dirname, '..', '..' ]
@@ -256,6 +260,7 @@ const execPromise = promisify1<string, string>(exec)
256export { 260export {
257 isTestInstance, 261 isTestInstance,
258 isProdInstance, 262 isProdInstance,
263 getAppNumber,
259 264
260 objectConverter, 265 objectConverter,
261 root, 266 root,