Skip to content

Commit

Permalink
Skip warm server when starting staging (github#16978)
Browse files Browse the repository at this point in the history
  • Loading branch information
heiskr authored Dec 15, 2020
1 parent 85ddb82 commit a66fc72
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ if (!module.parent) {
// If in a true production environment, wait for the cache to be fully warmed.
if (process.env.HEROKU_PRODUCTION_APP || process.env.GITHUB_ACTIONS) {
await warmServer()
} else {
// If not in a true production environment, don't wait for the cache to be fully warmed.
// This avoids deployment timeouts in environments with slower servers.
warmServer()
}
}

Expand Down

0 comments on commit a66fc72

Please sign in to comment.