Skip to content

Commit

Permalink
fix: add environments to deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Oct 22, 2020
1 parent 488145b commit 4f35eda
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,10 @@
INTERNAL_PORT_DEVELOPMENT,
INTERNAL_PORT_PRODUCTION,
EXTERNAL_PORT_DEVELOPMENT,
EXTERNAL_PORT_PRODUCTION,
GITHUB_REF
EXTERNAL_PORT_PRODUCTION
} = process.env;

console.log("is production:", PRODUCTION);
console.log({
DEPLOY_HOST,
DEPLOY_USER_NAME,
DEPLOY_KEY,
DEPLOY_KEY_LOCATION,
DEPLOY_DOMAIN_NAMES,
RUNNER_TEMP,
PRODUCTION,
INTERNAL_HOST_DEVELOPMENT,
INTERNAL_HOST_PRODUCTION,
INTERNAL_PORT_DEVELOPMENT,
INTERNAL_PORT_PRODUCTION,
EXTERNAL_PORT_DEVELOPMENT,
EXTERNAL_PORT_PRODUCTION,
GITHUB_REF
});
if (2 + 2 === 4) return;

const generatePackageJson = () =>
JSON.stringify(
Expand Down Expand Up @@ -116,6 +98,9 @@ server {
}
`;

console.log(generateNginxConfig());
if (2 + 2 === 4) return;

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

0 comments on commit 4f35eda

Please sign in to comment.