Skip to content

Commit

Permalink
Allow BUILD_ID to be set in the environment
Browse files Browse the repository at this point in the history
This makes multi server deploys with Capistrano possible.
  • Loading branch information
Craig McNamara committed Feb 22, 2018
1 parent 50fcefd commit 75a9ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 75a9ddc

Please sign in to comment.