Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
51d980cf
Commit
51d980cf
authored
Dec 01, 2017
by
Ray Schamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Conditionally purge on deploys
We can configure this within Travis
parent
ec507b73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
bin/configure-fastly.js
bin/configure-fastly.js
+6
-4
No files found.
bin/configure-fastly.js
View file @
51d980cf
...
@@ -177,10 +177,12 @@ async.auto({
...
@@ -177,10 +177,12 @@ async.auto({
fastly
.
activateVersion
(
results
.
version
,
function
(
err
,
response
)
{
fastly
.
activateVersion
(
results
.
version
,
function
(
err
,
response
)
{
if
(
err
)
throw
new
Error
(
err
);
if
(
err
)
throw
new
Error
(
err
);
process
.
stdout
.
write
(
'
Successfully configured and activated version
'
+
response
.
number
+
'
\n
'
);
process
.
stdout
.
write
(
'
Successfully configured and activated version
'
+
response
.
number
+
'
\n
'
);
fastly
.
purgeAll
(
FASTLY_SERVICE_ID
,
function
(
err
)
{
if
(
process
.
env
.
FASTLY_PURGE_ALL
)
{
if
(
err
)
throw
new
Error
(
err
);
fastly
.
purgeAll
(
FASTLY_SERVICE_ID
,
function
(
err
)
{
process
.
stdout
.
write
(
'
Purged all.
\n
'
);
if
(
err
)
throw
new
Error
(
err
);
});
process
.
stdout
.
write
(
'
Purged all.
\n
'
);
});
}
});
});
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment