Commit 1773048
committed
Remove assumption that server is run from root
Previously, reading the deployment_sha file assumed that the server is
always run via `node server.js` from the root directory of the service
and would crash if this is not the case.
In some environments, we may not want to invoke the service in that way,
for example because we want to provide an absolute path to the server.js
file. This change supports that use-case.1 parent 327df67 commit 1773048
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | | - | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments