<div id="api_guide">
  <h1>Deploying the kidney application server on Solaris 10</h1>

  <ol id="deploy_list" class="numbered">
    <li>Download the packages required for deployment of the Kidney Server from
    <%= link_to "here", url_for("/pkgs/solaris_deployment_pkgs.tar.gz")%>.</li>
    <li>For each package you will either have to untar or unzip before issuing the command described.</li>
    <li>Install ruby -- <code>pkgadd -d ruby-1.8.7p72-sol10-x86-local</code>.</li>
    <li>Add <code>/usr/local/bin</code> to your path - or just type the full path to ruby when you
     are required to run it.</li>
    <li>Install gcc -- <code>pkgadd -d gcc-3.4.6-sol10-x86-local</code>.</li>
    <li>If you have not done so already untar <code>rubygems-1.3.7.tar</code>, then run <code>ruby setup.rb</code>,
    from the <code>rubygems-1.3.7</code> directory. This installs the <code>gem</code> command and rubygems.</li>
    <li>Install libiconv -- <code>pkgadd -d libiconv-1.13.1-sol10-x86-local</code>.</li>
    <li>Install openssl -- <code>pkgadd -d openssl-1.0.0c-sol10-x86-local</code>.</li>
    <li>Download the latest Kidney Server build from
      <%= link_to("here", {:controller => :build, :action => :index}) %>.</li>
    <li>Tar/gunzip the server to the required directory, denoted by <code>[[KIDNEY_HOME]]</code></li>
    <li>Within <code>[[KIDNEY_HOME]]</code> run <code>ruby script/server -d -p 80 -e production</code>. This will run the server as a deamon process
    (<code>-d</code>), on port 80 (<code>-p</code>), and using the production environment (<code>-e</code>). If
    you just want to test that the server is running then you can omit the <code>-d</code> flag and this will just
    run the server in the shell.</li>
  </ol>
</div>