Open sammachin opened 7 years ago
note to self,
Look at using generic urls for app creation and then changing them in a postdeploy script
Nope the HEROKU_APP_NAME isn't availble in the postDeploy env either.
ah turns out that HEROKU_APP_NAME is only availible if you enable a labs feature dyno-metadata and I don't think this feature can be enabled from the app.json.
For now we are creating a 2nd env variable of 'NAME' in the app.json and asking the user to enter that as the sam value they use for the heroku name, this isn't ideal but until HEROKU_APP_NAME
is available in all apps its a workaround
The compile script does not seem to be able to access the name of the applicaiton which is required for setting up the urls in the nexmo app.
This is set in the HEROKU_APP_NAME env var when the app runs but doesn't appear to be avalible to the buildpack