Skip to content

Commit

Permalink
fix: remove bug from deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Oct 21, 2020
1 parent 91604c9 commit d7e1d80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ server {
// If we have deployed in the past, check if the nginx config needs to be updated (for example if the ports or domain names changed)
const needsNginxUpdate = lastDeploymentData == null || lastDeploymentData.PORT !== PORT || lastDeploymentData.DEPLOY_DOMAIN_NAMES !== DEPLOY_DOMAIN_NAMES;

if (needsNginxUpdate || true) {
if (needsNginxUpdate) {
console.log(`Nginx config needs update`);
// Write the nginx config to desk temporarily
writeFileSync(NGINX_CONFIG_LOCAL_FILE_NAME, generateNginxConfig());
Expand All @@ -189,7 +189,6 @@ server {
} else {
console.log(`Nginx config is up to date`);
}
return;

// Now, update the deployment data
writeFileSync(
Expand Down

0 comments on commit d7e1d80

Please sign in to comment.