Skip to content

Commit de89333

Browse files
Merge pull request #383 from ember-learn/purge-post-release
Install modules during release cmd
2 parents 2702006 + e051a2d commit de89333

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Procfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
web: ./bin/ember-fastboot tmp/deploy-dist --port $PORT
2-
release: node fastly-purge.js
2+
release: npm install fastly prettyjson && node fastly-purge.js

fastly-purge.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* eslint-disable no-console */
33
const ServiceKey = process.env['FASTLY_SERVICE_ID'];
44
const FastlyPurgeKey = process.env['FASTLY_PURGE_KEY'];
5-
const Fastly = require('./node_modules/fastly');
5+
const Fastly = require('fastly');
66

77

88
if (!ServiceKey || !FastlyPurgeKey) {
@@ -13,7 +13,7 @@ if (!ServiceKey || !FastlyPurgeKey) {
1313
const fastly = Fastly(FastlyPurgeKey);
1414

1515
fastly.purgeAll(ServiceKey, (err, fastlyResponseBody) => {
16-
const prettyjson = require('./node_modules/prettyjson');
16+
const prettyjson = require('prettyjson');
1717
if (err) {
1818
return console.log(prettyjson.render(err, {}));
1919
}

0 commit comments

Comments
 (0)