Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying New Relic on Heroku Cedar (PHP)

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!

like image 474
rbaker86 Avatar asked Nov 11 '11 09:11

rbaker86


2 Answers

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.

like image 89
fool Avatar answered Nov 11 '22 13:11

fool


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

See:

New Relic documentation

Heroku documentation

like image 26
Aaron Heusser Avatar answered Nov 11 '22 12:11

Aaron Heusser