From 6f5a024be23a6442a616dea36916f35bec4d4821 Mon Sep 17 00:00:00 2001 From: Kristina Lim Date: Fri, 12 Apr 2019 13:03:05 +0800 Subject: [PATCH] Update script/setup to create default newrelic.yml --- script/setup | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script/setup b/script/setup index 08fc3fb677..5baa0e862b 100755 --- a/script/setup +++ b/script/setup @@ -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