I though I would post some instructions for installing hritserver, since we don't yet have an installer. I should probably write one.
Installation on MacOSX
Homebrew can be fetched from http://mxcl.github.com/homebrew/. Follow the instructions there.
To build the C libraries used by hritserver you will first have to install gcc:
brew tap homebrew/dupes brew install apple-gcc42
3. Install couchdb
The command is
brew install couchdb
4. Set up databases
You need to first download the hritserver package, available from
www.github.com/HRIT-Infrastructure. Click on the hritserver repository,
then the Downloads tab. Select "
hritserver-0.1.3.tar.gz" and download it
(Don't click on "Download as .tar.gz" or .zip). When it is on you hard
disk it will unpack automatically or by double-clicking on it or on the
commandline (OSX removes the .gz automatically):
tar xvf hritserver-0.1.3.tar
Now move the folder to a convenient location:
cd ~/Downloads mv hritserver-0.1.3 ~ cd ~/hritserver-0.1.3
First set up the database for admin access. In the hritserver-0.1.3 folder are two scripts add-user.sh and couchdb.sh Run this command first:
After running this you have to press return to get back the prompt. Check that couchdb is running:
ps aux | grep couchdb
You should get two process numbers, one 1-line long (that's the command you just ran) and a longer one about 6 lines long. That's couch running.
It should respond with "
-hashed-9222..." and a lot of hex numbers.
Now test that couch is running by typing the url in a
There should be two entries in red: _replicator and _users.
Now install the test databases:
cd backup ./upload-all.sh
The script asks for a password. Type in jabberw0cky (with a zero). This is a master script that calls all the other upload-*.sh files. (So you can upload them individually.) Finally run hritserver from the command line:
5. Run the installer
cd .. sudo ./install.sh sudo ./hritserver-start.sh
Hit return. The service will run even when you log off. To stop the service, log in as the same user who launched it initially and type:
Access the service on http://localhost:8080/tests/ (trailing slash is significant). To make it visible on port 80 add the following lines to the end of /etc/apache2/httpd.conf,and restart apache
Now restart apache: sudo apachectl restart
ProxyPass /tests/ http://localhost:8080/tests/ retry=0 ProxyPass /corpix/ http://localhost:8080/corpix/ retry=0 ProxyPass /import/ http://localhost:8080/import/ retry=0 ProxyPass /upload/ http://localhost:8080/upload/ retry=0
Add the above lines to
ADDING OTHER TEXTS
The mmpupload tool can be used to upload files in XML or plain text in batches. See www.github.com/HRIT-Infrastructure.