Deploying New Relic on Heroku Cedar (PHP)

我的梦境 提交于 2019-11-30 14:04:42

问题


Has anyone succesfully deployed the New Relic addon to a PHP app running on Heroku Cedar stack? I'm running a fairly high traffic Facebook app on a few dynos and can't get it to work.

The best info I can find details a Python deployment: http://newrelic.com/docs/python/python-agent-and-heroku

Thanks!


回答1:


Heroku has just recently rolled out support for PHP with Cedar and we at New Relic don't know anything more than you do. We'll be talking with Heroku ASAP to get some docs developed which will certainly be on (New Relic's knowledge base), and I'll report back here as well.

Edited to add:

Sorry for the long delay in me checking back in. Unfortunately this is still not possible in a well-supported way, reason being that our php agent requires a standalone daemon to be running in addition to the dyno that is serving your content. While you can find terrible hacks to get you into the space where you could fire up the daemon temporarily, it's not sustainable and won't port to the next dyno that spins up. This means that we can't support you running the agent in this environment.

Edited to add:

As @aaron-heusser mentioned, support is finally official as of a month or so ago: https://github.com/heroku/heroku-buildpack-php

Note: I work at New Relic.




回答2:


As of September 2014, New Relic PHP does support running on Heroku using the official Heroku PHP buildpack.

See:

New Relic documentation

Heroku documentation



来源:https://stackoverflow.com/questions/8092070/deploying-new-relic-on-heroku-cedar-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!