- 最新
- 投票最多
- 评论最多
Hello there,
Here are some good practices for defining a Procfile for your application:
-
Put it in the root directory of your application source.
-
Use a Procfile for long-running application processes that shouldn't exit. Elastic Beanstalk monitors these processes and restarts any process that terminates.
-
All paths in the Procfile are relative to the root of the source bundle.
Example Procfile:
web: java -jar server.jar -Xms256m
cache: java -jar mycache.jar
web_foo: java -jar other.jar
In your case, you mention but it does come back as if it has failed
, to better understand the issue, I would recommend you to check the logs on the instances. Elastic Beanstalk names the log files after the process and stores them in /var/log. For example, the web process in the preceding example generates logs named web-1.log
and web-1.error.log
for stdout and stderr, respectively.
Feel free to open a support case to AWS Premium Support if you want us to take a closer look into your logs file.
相关内容
- AWS 官方已更新 10 个月前
- AWS 官方已更新 3 年前