Skip to content

Commit

Permalink
Revert Demo Env Config, Use Env Var To Control noindex tag (#2906)
Browse files Browse the repository at this point in the history
  • Loading branch information
foglabs authored Jan 23, 2025
1 parent 0d56c62 commit 127ea03
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 100 deletions.
2 changes: 1 addition & 1 deletion app/views/layouts/blacklight.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-->
<head>
<% if Rails.env == 'demo' # dont allow search engine indexing if demo site %>
<% if ENV["DONT_GOOGLE_INDEX"] # dont allow search engine indexing if demo site %>
<meta name="robots" content="noindex">
<% end %>
Expand Down
3 changes: 0 additions & 3 deletions config/blacklight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,5 @@ development:
url: http://127.0.0.1:8983/solr/blacklight-core
test:
url: http://127.0.0.1:8983/solr/blacklight-core
# TODO: Get separate dev and test cores, and change this back to 8888. bug #1
demo:
url: http://127.0.0.1:8983/solr/blacklight-core
production:
url: http://127.0.0.1:8983/solr/blacklight-core
4 changes: 0 additions & 4 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,3 @@ test:
production:
<<: *default
database: db/production.sqlite3

demo:
<<: *default
database: db/demo.sqlite3
89 changes: 0 additions & 89 deletions config/environments/demo.rb

This file was deleted.

2 changes: 0 additions & 2 deletions config/jetty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ default: &default
jetty_port: <%= ENV['JETTY_PORT'] || 8983 %>
jetty_home: <%= ENV['JETTY_HOME'] || File.expand_path(File.join(File.dirname(File.dirname(__FILE__)), 'jetty')) %>
solr_core: <%= ENV['SOLR_CORE'] || 'blacklight-core' %>
demo:
<<: *default
development:
<<: *default
test:
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/ci_specs.rake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not build this rake task when in production environment.
if Rails && !Rails.env.production? && Rails.env != 'demo'
if Rails && !Rails.env.production?

require 'rspec/core/rake_task'

Expand Down

0 comments on commit 127ea03

Please sign in to comment.