DEV Community

loading...

Discussion on: Integrate Newrelic in Laravel Vapor

Collapse
nicwisepub profile image
nicwisepub

Hey David,

This is an interesting approach. I have been trying to get an official support idea from NewRelic.

Unfortunately I am erroring here:

executor failed running [/bin/sh -c source .export && echo $' \n extension = "newrelic.so" \n newrelic.logfile = "/dev/null" \n newrelic.loglevel = "error" \n newrelic.appname = "NicT

est" \n newrelic.license = "MY_LICENSE"' >> /usr/local/etc/php/php.ini]: exit code: 2

Could the path no longer be valid since you cooked this up?

Thanks

Nic

Collapse
nicwisepub profile image
nicwisepub

Just to add to this. I believe I am missing your .export file in your working directory. Do you know the contents of it?

Collapse
davidv99 profile image
David Valbuena Author

Hey Nic, thanks for your advice

I generate my .export file from a pipeline to set my app_name and app_licence, I removed this section for the example.

If you want to use the .export file, you need to create this in the project folder with a structure like this, and then export these variables to handle in the process

export NEWRELIC_KEY=""
export NEWRELIC_APP_NAME=""
Enter fullscreen mode Exit fullscreen mode