mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-24 16:58:35 -04:00
Create the search index
This commit is contained in:
@@ -19,8 +19,8 @@ before_install:
|
||||
- export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
|
||||
- ./script/install_codeclimate.sh
|
||||
- ./script/install_linters.sh
|
||||
# Force Travis to use Elastic Search 2.4.0
|
||||
- ./script/install_elasticsearch.sh
|
||||
- RAILS_ENV=test bundle exec rake search:create
|
||||
script:
|
||||
- set -e
|
||||
- >
|
||||
|
||||
7
lib/tasks/search.rake
Normal file
7
lib/tasks/search.rake
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
namespace :search do
|
||||
desc "Create elastic search index"
|
||||
task create: :environment do
|
||||
Crop.__elasticsearch__.create_index! force: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user