-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix #104 by updating existing cases * document improvement
- Loading branch information
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
db/migrate/20200428150211_update_demo_solr_es_to_non_default_ports.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
class UpdateDemoSolrEsToNonDefaultPorts < ActiveRecord::Migration | ||
# Our demo Solr and ES instances were getting drive by vandalism by running on | ||
# default ports on the Internet. So we moved to non defaults. Update existing | ||
# cases. https://github.com/o19s/quepid/issues/104 | ||
def change | ||
|
||
solrTries = Try.where("search_url like '%quepid-solr.dev.o19s.com:8983/solr%'") | ||
solrTries.each do |try| | ||
try.search_url.sub!("8983","8985") # the new default demo port. | ||
try.save! | ||
end | ||
|
||
esTries = Try.where("search_url like '%quepid-elasticsearch.dev.o19s.com:9200%'") | ||
esTries.each do |try| | ||
try.search_url.sub!("9200","9206") # the new default demo port. | ||
try.save! | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters