Loading current app's URL in Heroku CI
simonv3 opened this issue · 1 comments
Hey!
We've got this buildpack working, and can successfully use it to drive tests (for example, it loads google, does a search, etc), but can't figure out how to get it to access the app it's on's URL in Heroku CI. Is this not possible?
For reference we're using the create-react-app buildpack, which puts a built SPA on nginx.
It's my understanding that we should be able to get the app-name using Heroku Labs, but when enabling the metadata lab on our app those ENV variables aren't available. Does the labs not work within Heroku CI builds?
Turns out that there's another step we had to enable which was to tell Heroku CI that we are doing UAT User Acceptance Testing by toggling HEROKU_UAT: "enabled"
.
RTFM I guess.