1
0
mirror of synced 2025-12-22 03:16:52 -05:00

Production deploy script (#21768)

* Create a logic branch to deploy to production via a local script

* Ignore forceRebuild default value for production

* Add soft warnings for missing-but-not-critical env vars

* Only include the Preboot delay if the Fastly env vars are present

* Add some warning emojis ⚠️

* More emojis!

* Make FASTLY_* checks all independent

* Add more comments about additional env vars recommended for a local prod deployment
This commit is contained in:
James M. Greene
2021-09-27 17:17:21 -05:00
committed by GitHub
parent 8af590f03c
commit 1d0d782342
4 changed files with 82 additions and 8 deletions

View File

@@ -355,6 +355,10 @@ export default async function deployToProduction({
// Is there a faster alternative than this arbitrary delay? For example,
// is there some Heroku API we can query to see when this release is
// considered to be the live one, or when the old dynos are shut down?
} else {
console.warn(
'⚠️ Bypassing the wait for Heroku Preboot....\nPlease understand that your changes will not be visible for at least another 2 minutes!'
)
}
// Report success!