Skip to content

Commit

Permalink
fix(api): use process.env.API_PORT (#364)
Browse files Browse the repository at this point in the history
As we spread multiple envs vars from a simple `.env` in docker-compose, we have to use  dedicated var name
  • Loading branch information
Julien Bouquillon authored and douglasduteil committed Dec 10, 2018
1 parent ff0bd10 commit 263e012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/code-du-travail-api/src/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const API_BASE_URL = require("./routes/api").BASE_URL;
const { logger } = require("./utils/logger");

const app = new Koa();
const PORT = process.env.PORT || 1337;
const PORT = process.env.API_PORT || 1337;

/**
* use a middleware for catching errors and re-emit them
Expand Down

0 comments on commit 263e012

Please sign in to comment.