<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>anilmakhijani.com &#187; AltLaw Development</title>
	<atom:link href="http://anilmakhijani.com/category/altlaw-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://anilmakhijani.com</link>
	<description></description>
	<lastBuildDate>Mon, 06 Jun 2011 17:19:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Developing Alt Law on Mac OS X</title>
		<link>http://anilmakhijani.com/2008/08/11/developing-alt-law-on-mac-os-x/</link>
		<comments>http://anilmakhijani.com/2008/08/11/developing-alt-law-on-mac-os-x/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 20:30:28 +0000</pubDate>
		<dc:creator>Anil</dc:creator>
				<category><![CDATA[AltLaw Development]]></category>
		<category><![CDATA[AltLaw]]></category>
		<category><![CDATA[Columbia Law and Technology Program]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Solr]]></category>

		<guid isPermaLink="false">http://anilmakhijani.com/?p=65</guid>
		<description><![CDATA[There is a neat project that I have wanted to get involved with for a while called AltLaw. AltLaw is a free open source project developed by the Columbia Law and Technology program. Resources for the project are located at the Law Commons Trac Page. I am trying to get the AltLaw &#8220;stack&#8221; working on [...]]]></description>
			<content:encoded><![CDATA[<p>There is a neat project that I have wanted to get involved with for a while called AltLaw.  AltLaw is a free open source project developed by the Columbia Law and Technology program.  Resources for the project are located at the <a href="http://lawcommons.org/trac/">Law Commons Trac Page</a>.</p>
<p>I am trying to get the AltLaw &#8220;stack&#8221; working on my Mac OS X machine.  So here we go:</p>
<p><span id="more-65"></span></p>
<p>
<strong>1) </strong>Download the file <a href="http://anilmakhijani.com/altlaw-config.zip">http://anilmakhijani.com/altlaw-config.zip</a> and unzip it.  I will refer to the location of this unzipped file as {alt-law-config-directory} throughout the rest of this tutorial.
</p>
<p>
<strong>2) </strong>Next, we have to get the Rails front end working.
</p>
<p>
(Prerequisites: sqlite, git)
</p>
<pre>
% git clone git://github.com/lawcommons/altlaw-websearch.gitInitialize altlaw-websearch/.git
% gem install -v=2.1.0 rails
% gem install htmlentities
% gem install BlueCloth
% gem install solr-ruby
% gem install ruby-debug
% gem install chronic
% gem install json
% cd altlaw-websearch
% mkdir log
% chmod -R 644 log/
% cp {alt-law-config-directory}/altlaw-config/rails-config/* config/database.yml
% rake db:migrate
</pre>
<p>In the file config/environment.rb, change the line:</p>
<p><code>SOLR = Solr::Connection.new("http://localhost:8196/v3/solr")</code></p>
<p>to:</p>
<p><code>SOLR = Solr::Connection.new("http://localhost:8983/solr/")</code></p>
<p>and:</p>
<p><code>ExceptionNotifier.exception_recipients = ['errors@altlaw.org']</code></p>
<p>to:</p>
<p><code>ExceptionNotifier.exception_recipients = ['myemail@example.com']</code></p>
<p>% ./script/server</p>
<p>This starts the Rails front end at http://localhost:3000</p>
<p><em>* To run the Rails front end in production mode do the following:</em></p>
<p>(Additional prerequisites: mysql)</p>
<p>update config/database.yml with the proper configuration for you database</p>
<pre>
% rake db:migrate RAILS_ENV=production
% rake sass:update
% RAILS_ENV=production rake asset:packager:build_all
% ./script/server -e production
</pre>
<p><strong>3)</strong> Finally, we need Solr:</p>
<p>The following tutorial seemed to work perfectly on my Mac OS X: <a href="http://lucene.apache.org/solr/tutorial.html">http://lucene.apache.org/solr/tutorial.html</a></p>
<pre>
% wget http://mirror.x10.com/mirror/apache/lucene/solr/1.2/apache-solr-1.2.0.tgz
% tar xvfz apache-solr-1.2.0.tgz
% cd apache-solr-1.2.0
% cp -r example/ alt-law/
% cd alt-law/
% cp {alt-law-config-directory}/altlaw-config/solr-config/* solr/conf/
% java -jar start.jar
</pre>
<p>This starts solr at http://localhost:8983/solr/.</p>
<p>This set of instructions worked for me.  I would love feedback on what it would take to get this to work on non Mac OS X system.</p>
]]></content:encoded>
			<wfw:commentRss>http://anilmakhijani.com/2008/08/11/developing-alt-law-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

