18F / 18f-scaffolding

A scaffold/generator to standardize 18F project setup
Other
26 stars 14 forks source link

Ericschles newrelic subgenerator #62

Closed EricSchles closed 7 years ago

EricSchles commented 7 years ago

This pull request is in response to the following request:

https://github.com/orgs/18F/projects/2#card-3371698

What the card says:

Create new relic default config files for typical 18F projects (django, rails, node) and add to eng-scaffolding (1-2 weeks)

This subcommand will likely need to be added to the docs. So I'm adding the preliminary documentation here - please review if you think anything is missing or confusing!

Docs start here:

The newrelic generator subcommand works to configure your 18F project for newrelic.

Assumptions the newrelic subcommand makes:

Once you've run everything, if you are in django or rails you should be done. However, if you are using Node.js you'll also need to include var newrelic = require('newrelic'); at the top of whatever script is going to start your server. This also means, if you want to test locally you'll need to run npm install newrelic --save.

Note: Right now we cover low security settings, if you are interested in high security, please investigate on your own! And feel free to report back. :)