Skip to content

Commit be7e389

Browse files
committed
heroku-self-ping and fix bad url for PDF
1 parent 34809cc commit be7e389

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Diff for: bin/server

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/env node
22

3+
require('heroku-self-ping')(process.env.SELF_URL);
4+
35
// Load configuration
46
var config = require("../config/configuration.js");
57
var server = require('../app.js');

Diff for: config/configuration.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = {
2828
tasksPerProcess: process.env.TASKS_PER_PROCESS,
2929

3030
pdfHydraterUrl: process.env.PDF_HYDRATER_URL || defaultPdfHydraterUrl,
31-
officeHydraterUrl: process.env.OFFICE_HYDRATER_URL || defaultOfficeHydraterUrl,
31+
officeHydraterUrl: process.env.SELF_URL || defaultOfficeHydraterUrl,
3232

3333
redisUrl: process.env.REDIS_URL,
3434
appName: process.env.APP_NAME || "office-hydrater",

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"anyfetch-hydrater": "^2.1.1",
2626
"async": "0.9.x",
2727
"exec-sync": "^0.1.6",
28+
"heroku-self-ping": "^1.1.1",
2829
"restify": "~2.8.5",
2930
"supertest": "^0.15.0"
3031
},

0 commit comments

Comments
 (0)