mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
Merge pull request #1718 from rschamp/hotfix/no-purge-deploys
[Develop] Conditionally purge on deploys
This commit is contained in:
commit
7432c20f73
1 changed files with 6 additions and 4 deletions
|
@ -177,10 +177,12 @@ async.auto({
|
|||
fastly.activateVersion(results.version, function (err, response) {
|
||||
if (err) throw new Error(err);
|
||||
process.stdout.write('Successfully configured and activated version ' + response.number + '\n');
|
||||
if (process.env.FASTLY_PURGE_ALL) {
|
||||
fastly.purgeAll(FASTLY_SERVICE_ID, function (err) {
|
||||
if (err) throw new Error(err);
|
||||
process.stdout.write('Purged all.\n');
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue