Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Harvest+OpenMRS

Prerequisites

  • Python 2.7

The Simple Way

pip install harvest
harvest init-demo openmrs

The Hard Way

Setup & Install

Install virtualenv:

$ wget http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.2.tar.gz
$ tar zxf virtualenv-1.8.2.tar.gz
$ cd virtualenv-1.8.2
$ python setup.py install

You may need to do that last step as root. Just make sure you use the
correct Python binary for OSes with multiple Python versions.

Create a virtual environment for the project:

$ virtualenv myproject-env
$ cd myproject-env
$ source bin/activate

Clone or Download

Clone using Git. The advantages of cloning the repository is to keep-up-date
as updates to the project happen.

$ git clone git://github.com/cbmi/harvest-openmrs
$ cd harvest-openmrs
$ git checkout demo

Alternatively, you can download a zipped version, the <random-chars> shown
below will vary depending on the version of the build.

$ wget https://github.com/cbmi/harvest-openmrs/zipball/demo
$ unzip harvest-openmrs-<random-chars>.zip
$ mv harvest-openmrs-<random-chars> harvest-openmrs
$ cd harvest-openmrs

Setup

$ pip install -r requirements.txt
$ make collect

Run It

$ ./bin/manage.py runserver

Open up your web browser to http://localhost:8000

Docker Pull Command
Owner
afflickc
Source Repository

Comments (2)
afflickc
2 years ago

Sorry about the delay in response. We have a rather large fixture that takes a while to load. It should take around 3ish minutes before all of the data is ready and during that time you'd get an ERR_CONNECTION_REFUSED message. We are sorry about that. There is also currently an issue with the migration history. A fix should be up soon but until then just add the two lines below after you pull and run the container and refresh your page. It should work fine.

CID=$(docker ps | grep -w "afflickc/harvest-openmrs" | awk '{print $1}' | head -1)
docker exec $CID python /opt/app/bin/manage.py migrate avocado
laurieheer
2 years ago

I was very happy to see this image posted. When I followed your steps I received ConnectionRefused when attempting to view the site. I am on EC2, Ubuntu standard AMI. Used Python 2.7 that was pre-loaded.