nexmo-community / heroku-buildpack-voice

A Heroku Buildpac to Automatically setup a nexmo voice app
2 stars 3 forks source link

Can't detect App Name #1

Open sammachin opened 7 years ago

sammachin commented 7 years ago

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

sammachin commented 7 years ago

note to self,

Look at using generic urls for app creation and then changing them in a postdeploy script

sammachin commented 7 years ago

Nope the HEROKU_APP_NAME isn't availble in the postDeploy env either.

sammachin commented 7 years ago

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.

sammachin commented 7 years ago

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