Skip to content

Commit e051a2d

Browse files
Install modules during release cmd
1 parent 2702006 commit e051a2d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Procfile

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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)