Aws Elasticbean not launching my .jar application

After loading and deploying to aws, the .jar file did not start. Thus, the static content is served, and nginx is reconfigured (according to special settings), but the jar file (which was in the root .zip that I downloaded) did not start after deployment, so I had to run it with the ssh command, and, of course , it closes after closing the ssh terminal ... I enabled procfile as defined on the amazon site, but there was no progress.

+5
source share
1 answer

Let me understand if I understand: you have problems with java code running on AWS Elastic Beanstalk because it thinks your code is ok, like static index.html file, right?

In this case, there are two things to look for:

  • Set the health check URL by pointing to one of your java endpoints. In particular, it is useful if you could diagnose every external dependency (other AWS services, databases).
  • Enter the instance - make sure you can get all the records you can: Environment Variables, System Properties - this will be the beginning

Hope this helps

+2
source

Source: https://habr.com/ru/post/1243887/


All Articles