OnlineJudgeFE/config/dev.env.js

12 lines
313 B
JavaScript
Raw Normal View History

2017-10-24 13:16:00 +00:00
let date = require('moment')().format('YYYYMMDD')
let commit = require('child_process').execSync('git rev-parse HEAD').toString().slice(0, 5)
let version = `"${date}-${commit}"`
console.log(`current version is ${version}`)
module.exports = {
NODE_ENV: '"development"',
2017-12-20 08:20:57 +00:00
VERSION: version,
USE_SENTRY: '0'
2017-10-24 13:16:00 +00:00
}