-
Notifications
You must be signed in to change notification settings - Fork 3
Development Environment Setup
Clone this repository and copy in the .env file
$ cp .env-example .env
Initialize and start the local dev environment:
$ ./local-dev-init.sh
You will be prompted for a password. Use your sudo / machine admin password here.
You'll see something like the following eventually appear in your terminal:
=> Booting Puma
web_1 | => Rails 5.1.2 application starting in development on http://0.0.0.0:3000
web_1 | => Run `rails server -h` for more startup options
Once the rails server has booted, open http://localhost:3000/ in your browser.
There will be some additional docker containers that are created that won't be running that you can safely remove. They will appear with names such as mdl_search_web_run_a434f8e85cbc.
Once the app is up and running, open another container and run the following command to ingest and index some content:
$ docker-compose exec web rake 'mdl_ingester:collection[p15160coll13]'
$ docker-compose exec web rake 'mdl_ingester:collection[p16022coll10]'
Make sure to use these collections as they have the best coverage of different format types.
Once the ingest sidekiq jobs have completed:
$ docker-compose exec web rake solr:commit