diff options
author | Chocobozzz <me@florianbigard.com> | 2019-06-13 11:09:38 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-06-13 11:09:38 +0200 |
commit | 1a12f66d631d28a5a58ebbcd274426f2e6e5d203 (patch) | |
tree | edaf546dfc8bcdb55d271111618e65569aa68cc0 /server/helpers | |
parent | 4913295f9db1a7b814129d90b159a418cb32bb75 (diff) | |
download | PeerTube-1a12f66d631d28a5a58ebbcd274426f2e6e5d203.tar.gz PeerTube-1a12f66d631d28a5a58ebbcd274426f2e6e5d203.tar.zst PeerTube-1a12f66d631d28a5a58ebbcd274426f2e6e5d203.zip |
Add more CLI tests
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/core-utils.ts | 5 |
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 | ||
137 | function getAppNumber () { | ||
138 | return process.env.NODE_APP_INSTANCE | ||
139 | } | ||
140 | |||
137 | function root () { | 141 | function 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) | |||
256 | export { | 260 | export { |
257 | isTestInstance, | 261 | isTestInstance, |
258 | isProdInstance, | 262 | isProdInstance, |
263 | getAppNumber, | ||
259 | 264 | ||
260 | objectConverter, | 265 | objectConverter, |
261 | root, | 266 | root, |