Reputation: 2281
I have used the below command to deploy executable jar for spring boot application(working in local mcahine)
heroku deploy:jar <jar file path> --app appName
It is shows deployed successfully but not running.But The same app is running fine while push the code to heroku git.Please suggest a way to solve this issue
Upvotes: 0
Views: 1955
Reputation: 6354
You can use a proc file to deploy spring boot application in Heroku.
Create a file name Procfile in your app directory. Add the following line in it.
web: java -jar target/java-getting-started-1.0.jar
Redeploy the application.
For step by step instructions follow this article https://devcenter.heroku.com/articles/getting-started-with-java#define-a-procfile.
Upvotes: 1