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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.