Closed thoop closed 8 years ago
Forgot to mention the issue relating to this PR:
thanks for diagnosing this! would you mind filling out a CLA real quick? https://github.com/Medium/opensource/blob/master/sign-cla.md
Signed the CLA
@nicks mind merging this and bumping the version when you get a chance? Thanks so much!
sure, it may take me a little bit to get to it though
In v2.1.7,
tryPhantomjsInLib
wouldn't overwritelocation.js
if phantomjs was foundIn v2.1.8,
tryPhantomjsInLib
would overwritelocation.js
with an absolute location if phantomjs was foundThis breaks Elastic Beanstalk because they put your app in
/tmp/deployment
, runnpm install
andnpm rebuild
, then move your app to/var/app/current
.The
npm rebuild
was causinglocation.js
to have an absolute path as the location, which was no longer valid once the app was moved to/var/app/current
instead of/tmp/deployment
.The change I made should preserve some of the code cleanup by conditionally overwriting
location.js
iffindValidPhantomJsBinary
returns a valid path.Please bump the patch version after this is merged since it's a breaking change affecting all current Elastic Beanstalk deploys :)
Thanks for your work on this repo!