Skip to content

Commit e015d65

Browse files
committed
initial
1 parent f521f38 commit e015d65

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ FROM node:7.6.0
22
ADD package.json .
33
RUN npm install
44
ADD lib lib
5-
ENV NODE_ENV production
65
CMD ["node", "--harmony", "lib/index.js"]
+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11

2+
echo "NODE_ENV $NODE_ENV"
23
docker build -t geo-cache https://github.com/evanx/geo-cache.git
34
docker rm -f `docker ps -q -f name=geo-cache`
45
docker run --name geo-cache -d \
56
--network=host --restart unless-stopped \
6-
-e NODE_ENV=production \
77
-e httpPort=8851 \
8+
-e NODE_ENV=$NODE_ENV \
89
geo-cache

lib/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const reduceAllProperties = (object, fn) => Object.keys(object).reduce((result,
1212

1313
module.exports = async appx => {
1414
const {config, logger, client, api} = appx;
15-
logger.info({config});
15+
logger.info({config}, process.env.NODE_ENV);
1616
api.get('/stats', async ctx => {
1717
ctx.redirect('/metrics');
1818
});

test/redeploy.sh

-6
This file was deleted.

0 commit comments

Comments
 (0)