mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
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:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -37,6 +37,7 @@ NERD_tree*
|
||||
coverage
|
||||
libpeerconnection.log
|
||||
/config/application.yml
|
||||
/config/newrelic.yml
|
||||
node_modules
|
||||
vendor/bundle/
|
||||
coverage
|
||||
|
||||
1
Gemfile
1
Gemfile
@@ -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'
|
||||
|
||||
@@ -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!
|
||||
|
||||
4
config/newrelic.yml.example
Normal file
4
config/newrelic.yml.example
Normal file
@@ -0,0 +1,4 @@
|
||||
development:
|
||||
app_name: Open Food Network (Development)
|
||||
developer_mode: true
|
||||
monitor_mode: false
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user