I have build my first NodeJS app with Express and am running it on C9 without any issues.
The app uses a Node Package (easy-pdf-merge
) which requires at least Java 6.
On pushing my code up to Heroku I get an error at the point of the merge process saying I don't have Java install on this Dyno.
I have read a little about buildpacks but I'm not sure on the direction here.
Unless there is a simpler way to merge PDFs of course.
Thanks
Stu
Run the following command:
$ heroku buildpacks:clear
$ heroku buildpacks:add heroku/jvm
$ heroku buildpacks:add heroku/nodejs
Then redeploy by running
$ git commit -m "redeploy" --allow-empty
$ git push heroku master
After the build, the JVM will be installed in your app, and available for use.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With