Skip to content

Commit

Permalink
fix: ensure that server names are unique
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Oct 22, 2020
1 parent c82613d commit 2fac6d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
run: npm ci

- name: Test
if: ${{ github.ref == 'refs/heads/master' }}
run: npm test

- name: Build
Expand Down
7 changes: 4 additions & 3 deletions deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@
}
])
.flat();
for (const serverConfig of serverConfigs) {
console.log(serverConfig.publicPort, normalizePortSuffix(serverConfig.publicPort));
}

const generateNginxConfig = () => `\
${serverConfigs
.map(
Expand Down Expand Up @@ -105,6 +103,9 @@ server {
}
`;

console.log("config:", generateNginxConfig());
if (2 + 2 === 4) return;

const PREFERRED_NODE_VERSION = "14.x";
const APP_NAME = PRODUCTION ? "polyfiller" : "polyfiller-development";
const LOCAL_WRITE_ROOT = RUNNER_TEMP ?? "temp";
Expand Down

0 comments on commit 2fac6d9

Please sign in to comment.