Skip to content

Remove assumption that server is run from root - #9

Merged
c-w merged 1 commit into
masterfrom
fix-sha-path
Sep 7, 2017
Merged

Remove assumption that server is run from root#9
c-w merged 1 commit into
masterfrom
fix-sha-path

Conversation

@c-w

@c-w c-w commented Aug 18, 2017

Copy link
Copy Markdown
Contributor

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.

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.
@c-w
c-w requested a review from timfpark August 18, 2017 16:45

@jcjimenez jcjimenez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@c-w
c-w merged commit b348198 into master Sep 7, 2017
@c-w
c-w deleted the fix-sha-path branch September 7, 2017 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants