Skip to content

Commit

Permalink
allow the user to pass in BLACKLIGHT_INSTALL_OPTIONS to configure the…
Browse files Browse the repository at this point in the history
… blacklight:install generator
  • Loading branch information
cbeer committed Jun 22, 2014
1 parent 4b2ee1d commit ef57f01
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions template.demo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ef57f01

Please sign in to comment.