Skip to content

Commit

Permalink
tweak env var names for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffmcaffer committed Dec 2, 2018
1 parent 28ad1ed commit 70582d3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"runtimeArgs": ["--nolazy"],
"env": {
"NODE_ENV": "localhost",
"PORT": "5000",
"BUILD_NUMBER": "0"
"PORT": "5000"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ENV APPDIR=/opt/service
# apk add --no-cache bash git openssh

ARG BUILD_NUMBER=0
ENV BUILD_NUMBER=$BUILD_NUMBER
ENV CRAWLER_BUILD_NUMBER=$BUILD_NUMBER

# Ruby
RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests curl bzip2 build-essential libssl-dev libreadline-dev zlib1g-dev cmake && \
Expand Down
2 changes: 1 addition & 1 deletion providers/logging/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const winston = require('winston')
const insights = require('./insights')

function factory(tattoos) {
insights.setup(tattoos, config.get('CRAWLER_INSIGHTS_KEY'), config.get('LOGGING_ECHO'))
insights.setup(tattoos, config.get('CRAWLER_INSIGHTS_KEY'), config.get('CRAWLER_ECHO'))
const result = new winston.Logger()
result.add(aiLogger, {
insights: appInsights,
Expand Down
2 changes: 1 addition & 1 deletion run.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const uuid = require('node-uuid')
const logger = require('./providers/logging/logger')({
crawlerId: config.get('CRAWLER_ID') || uuid.v4(),
crawlerHost: config.get('CRAWLER_HOST'),
buildNumber: process.env.BUILD_NUMBER
buildNumber: config.get('CRAWLER_BUILD_NUMBER')
})

run(defaults, logger, searchPath, maps)

0 comments on commit 70582d3

Please sign in to comment.