heroku.appName by System property
Closed this issue · 4 comments
cbornet commented
It would be great to be able to pass the app name by command line
./gradlew deployHeroku -Dheroku.appName=myapp
like with the maven plugin
asarkar commented
I faced this issue today where the plugin failed to find the app name, although there is an app.json
present in the project root directory.
Malax commented
app.json
usually does not contain a specific app name this plugin could use to deploy the app. This is the order the plugin tries to resolve the app name in:
- The heroku.properties file
- The heroku.appName system property
- The configuration in Gradle
- The "heroku" Git remote
This could be much better documented, I created #27 to track this. Do you have any of those settings available/configured?
asarkar commented
I referred to the official sample app for Java, and didn't see a heroku.properties
file. There's an app.json
though.