-
Notifications
You must be signed in to change notification settings - Fork 628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #2778 frontend.url, frontend.url.runtime props #2974
Conversation
@alisman One advantage of this is that we can for instance point to I've got an idea to deal with cache busting as well. We can just add the commit hash in the |
948dc56
to
9823dd0
Compare
You can btw see this working here: https://cbioportal-pr-2974.herokuapp.com/case.do#/patient?caseId=P04&studyId=lgg_ucsf_2014 (this is using a different version than the one specified in the pom, it is using cBioPortal/cbioportal-frontend#562). Changing the frontend on heroku is simply changing the config vars (only restarts the app, no rebuild required) |
9823dd0
to
a661497
Compare
a661497
to
f2314bc
Compare
f2314bc
to
53bb7d6
Compare
} else { | ||
console.log('ERROR: No frontend URL defined, should at least be empty string'); | ||
} | ||
// even though this should never happen, probably better to include |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should make it fail loudly though. so devs will notice. by falling back, they could think it's working
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alisman yeah that's maybe better. Should never happen anyway. It will just try to include a script tag with undefined
plus you'll get the error message above, so that should be p obvious
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
- frontend.url: specify what cbioportal-frontend url should be used. It overrides whatever frontend version is provided in the WAR through jitpack. - frontend.url.runtime: specify a file that contains the runtime version (eventually this should also support a URL). Overrides frontend.url. - Add FRONTEND_URL env variable to Heroku
53bb7d6
to
66269bc
Compare
Also allow changing
FRONTEND_URL
env variable on herokuFix #2778