From 4582a62cef85f21c74cfb5f84fcc7928c83fe1c0 Mon Sep 17 00:00:00 2001 From: Chris Beer Date: Mon, 9 Jun 2014 11:01:51 +0300 Subject: [PATCH] allow the user to pass in BLACKLIGHT_INSTALL_OPTIONS to configure the blacklight:install generator --- template.demo.rb | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/template.demo.rb b/template.demo.rb index cb8dcd255d..989569b986 100644 --- a/template.demo.rb +++ b/template.demo.rb @@ -3,13 +3,17 @@ run "bundle install" # run the blacklight install generator -generate 'blacklight:install', '--devise --marc --jettywrapper' +options = ENV.fetch("BLACKLIGHT_INSTALL_OPTIONS", '--devise --marc --jettywrapper') + +generate 'blacklight:install', options # run the database migrations rake "db:migrate" # index some data -rake "jetty:clean" -rake "jetty:start" -rake "blacklight:solr:seed" -rake "jetty:stop" +if options =~ /jettywrapper/ + rake "jetty:clean" + rake "jetty:start" + rake "blacklight:solr:seed" + rake "jetty:stop" +end