From 75a9ddc86ba6bc4089feabc1eed88c26907963ab Mon Sep 17 00:00:00 2001 From: Craig McNamara Date: Thu, 22 Feb 2018 13:40:48 -0800 Subject: [PATCH] Allow BUILD_ID to be set in the environment This makes multi server deploys with Capistrano possible. --- server/build/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/build/index.js b/server/build/index.js index 4b7577bd5803b..43dac8262ec2c 100644 --- a/server/build/index.js +++ b/server/build/index.js @@ -8,7 +8,7 @@ import md5File from 'md5-file/promise' export default async function build (dir, conf = null) { const config = getConfig(dir, conf) - const buildId = uuid.v4() + const buildId = process.env.BUILD_ID || uuid.v4() try { await fs.access(dir, fs.constants.W_OK)