Skip to content

Commit b348198

Browse files
authored
Merge pull request #9 from CatalystCode/fix-sha-path
Remove assumption that server is run from root
2 parents 332ab20 + 1773048 commit b348198

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

controllers/ops.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
"use strict";
22

33
let fs = require('fs');
4+
let path = require('path');
45

56
let services = require('../services');
67

78
let deploymentSHA;
8-
fs.readFile('./deployment_sha', 'utf8', (err, sha) => {
9+
fs.readFile(path.join(__dirname, '..', 'deployment_sha'), 'utf8', (err, sha) => {
910
deploymentSHA = sha.trim();
1011
});
1112

0 commit comments

Comments
 (0)