Open sparkyspider opened 4 years ago
If I do the buildpack without heroku/java I seem to get much further...
marks-local-machine:GraalVM sparkyspider$ git push heroku master --force Enumerating objects: 5, done. Counting objects: 100% (5/5), done. Delta compression using up to 8 threads Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 292 bytes | 292.00 KiB/s, done. Total 3 (delta 2), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> GraalVM app detected remote: -----> Installing GraalVM remote: - done remote: -----> Configuring remote: - done remote: -----> Discovering process types remote: Procfile declares types -> web remote: remote: -----> Compressing... remote: Done: 420.1M remote: -----> Launching... remote: ! Warning: Your slug size (420 MB) exceeds our soft limit (300 MB) which may affect boot time. remote: Released v5 remote: https://graalvm-test.herokuapp.com/ deployed to Heroku
2020-10-01T20:22:16.755172+00:00 heroku[web.1]: State changed from crashed to starting 2020-10-01T20:22:16.626143+00:00 app[web.1]: /app/.profile.d/graal.sh: line 1: 404:: command not found 2020-10-01T20:22:16.626162+00:00 app[web.1]: /app/.profile.d/jdbc.sh: line 1: 404:: command not found 2020-10-01T20:22:16.643893+00:00 app[web.1]: 2020-10-01T20:22:16.643896+00:00 app[web.1]: ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 2020-10-01T20:22:16.643896+00:00 app[web.1]: 2020-10-01T20:22:16.643897+00:00 app[web.1]: Please set the JAVA_HOME variable in your environment to match the 2020-10-01T20:22:16.643897+00:00 app[web.1]: location of your Java installation. 2020-10-01T20:22:16.643898+00:00 app[web.1]:
Adding a note that my use case is a gradle app with build.gradle (not pom.xml as per Maven) but that it was working before so not sure what changed on Heroku's side.
Same issue here
Hi Joe,
I've been trying to deploy a Spring app on Heroku. It's crashing asking for JAVA_HOME. I've tried swapping the dependencies around as well as forking your buildpack to upgrade to lastest.
https://github.com/windflow-io/graal-buildpack
Hoping you can advise. When I left out the heroku/java it seemed to get further. I don't understand why the JAVA_HOME set by the script isn't sticking.
Help and advice appreciated.