Merge pull request #3736 from kristinalim/feature/enable_newrelic_test_mode

Install and set up newrelic_rpm gem for development environment
This commit is contained in:
Luis Ramos
2019-04-16 15:35:36 +01:00
committed by GitHub
5 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View File

@@ -37,6 +37,7 @@ NERD_tree*
coverage
libpeerconnection.log
/config/application.yml
/config/newrelic.yml
node_modules
vendor/bundle/
coverage

View File

@@ -142,6 +142,7 @@ end
group :development do
gem 'byebug', '~> 9.0.0' # 9.1 requires ruby 2.2
gem "newrelic_rpm", "~> 3.0"
gem 'pry-byebug', '>= 3.4.3'
gem 'debugger-linecache'
gem 'guard'

View File

@@ -542,6 +542,7 @@ GEM
nenv (0.3.0)
net-http-persistent (3.0.0)
connection_pool (~> 2.2)
newrelic_rpm (3.18.1.330)
nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0)
notiffany (0.1.1)
@@ -824,6 +825,7 @@ DEPENDENCIES
letter_opener (>= 1.4.1)
listen (= 3.0.8)
momentjs-rails
newrelic_rpm (~> 3.0)
nokogiri (>= 1.6.7.1)
oauth2 (~> 1.4.1)
ofn-qz!

View File

@@ -0,0 +1,4 @@
development:
app_name: Open Food Network (Development)
developer_mode: true
monitor_mode: false

View File

@@ -46,6 +46,12 @@ if [ ! -f config/application.yml ]; then
printf "${YELLOW}Copied config/application.yml Make sure to fill it with the appropriate configuration values.\n\n${NO_COLOR}"
fi
# Set up newrelic.yml for development environment, used by the newrelic_rpm gem
if [ ! -f config/newrelic.yml ]; then
cp config/newrelic.yml.example config/newrelic.yml
printf "${YELLOW}Copied config/newrelic.yml which configures the development environment for the newrelic_rpm gem.\n\n${NO_COLOR}"
fi
# Set up the database for both development and test
# Confirming the default user and password Spree prompts
printf '\n\n' | bundle exec rake db:setup db:test:prepare