Heroku:在Heroku部署中使用NewRelic:战争方法 [英] Heroku : Using NewRelic with heroku deploy:war approach

查看:113
本文介绍了Heroku:在Heroku部署中使用NewRelic:战争方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Heroku 允许使用 heroku deploy:war 直接部署 Java .war文件(Procfile在这种情况下,由heroku自动管理)。



如何使用 NewRelic 这样的设置? NewRelic上的Heroku DevCenter的当前文档要求将NewRelic jar放置在Java应用程序的根文件夹中。



使用<$ c $时如何实现这一点c> heroku deploy:war 直接部署应用程序而不通过git?

解决方案

我收到来自Heroku支持团队的这个响应:


WAR部署没有专门处理这种情况。但是,它应该
工作。您可以在WAR中包含New Relic JAR,并在您的JAVA_OPTS配置文件中添加
javaagent标志。



Heroku allows the option of directly deploying one's Java .war file using heroku deploy:war (the Procfile is automatically managed by heroku in this case).

How does one use NewRelic with such a setup? The current documentation on Heroku DevCenter on NewRelic asks one to place the NewRelic jar in the root folder of the Java application.

How does one achieve this when using heroku deploy:war to directly deploy the app and not via git?

解决方案

I received this response from Heroku Support team:

WAR deploy doesn't specifically handle this case. However, it should work. You can include the New Relic JAR in your WAR and add the javaagent flag in your JAVA_OPTS config.

这篇关于Heroku:在Heroku部署中使用NewRelic:战争方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆