From 440278fe92a01de9fbabf88d429dcf0c0d12e808 Mon Sep 17 00:00:00 2001 From: Oludare96 Date: Wed, 24 May 2017 10:30:40 -0400 Subject: [PATCH] Update README.md Changes made to address some outdated commands, and offer advice to address a common problem with Postgres during set up. --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7ef8755b6..9ba3862f6 100644 --- a/README.md +++ b/README.md @@ -44,16 +44,19 @@ Run Celery python manage.py celery worker -l DEBUG ## Populate with data -This is particularly applicable to running [ember-share](https://github.com/CenterForOpenScience/ember-share), an interface for SHARE. +This is particularly applicable to running [ember-share](https://github.com/CenterForOpenScience/ember-share), an interface for SHARE. + +In a separate terminal, navigate to SHARE directory and activate the same virtual environment. Harvest data from providers, for example ./manage.py harvest com.nature --async ./manage.py harvest com.peerj.preprints --async + +Insure all requirements.txt needed for this project are properly installed, this may take some time. -Pass data to elasticsearch with `runbot`. Rerunning this command will get the most recently harvested data. This can take a minute or two to finish. - - ./manage.py runbot elasticsearch + pip install -r dev-requirements.txt + ./manage.py elasticsearch ## Building docs @@ -70,4 +73,7 @@ Pass data to elasticsearch with `runbot`. Rerunning this command will get the mo ### BDD Suite behave + +## Problems with Postgress +If you run into problems with Postgress, restart Docker. If that doesn't work proceed to reset Docker by going to Docker -> preferences -> reset (bomb icon)