Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
#!/usr/bin/env node
/*
* Copyright (c) 2018, Hugo Freire .
*
* This source code is licensed under the license found in the
* LICENSE.md file in the root directory of this source tree.
*/
const VERSION = process.env.VERSION
const VERSION_COMMIT = process.env.VERSION_COMMIT
const VERSION_BUILD_DATE = process.env.VERSION_BUILD_DATE
const Logger = require('modern-logger')
Logger.configure({
transports: {
console: [
{
colorize: false,
timestamp: false
}
]
}
})
if (VERSION && VERSION_COMMIT && VERSION_BUILD_DATE) {
Logger.info(`Running version ${VERSION} from commit ${VERSION_COMMIT} built on ${VERSION_BUILD_DATE}`)
}
const Server = require('./server')