Difference between revisions of "Umlaut Deployment with Thin and Apache"

From Code4Lib
Jump to: navigation, search
(New page: Instead of using mongrel, NYU is using [http://code.macournoyer.com/thin/ thin]. The thin configuration is almost identical to mongrel. The two files used to implement are detailed below....)
(No difference)

Revision as of 15:35, 7 April 2011

Instead of using mongrel, NYU is using thin. The thin configuration is almost identical to mongrel. The two files used to implement are detailed below. config/umlaut_config/deploy/thin_cluster.yml --

  1. Unix account to run your processes as:

user: umlaut

  1. Unix group to run processes as:

group: umlaut

  1. Install dir of Umlaut you want to run from:

chdir: /apps/umlaut/ log: log/thin.log # Leave like this.

  1. Start port for your instances. Any high port will do. Does NOT need need
  2. to be open through firewall externally.

port: 4001 environment: production # Leave like this address: 127.0.0.1 # Leave like this

  1. address: 0.0.0.0 # Leave like this

pid: tmp/pids/thin.pid # Leave like this

  1. How many instances to run. port: 8000 with servers:3 means you'll
  2. have a server on 8000, 8001, and 8002.

servers: 4

  1. Only if you want to start at web path other than base / :
  2. prefix: /getit # for instance. Start with slash, and don't end with one.

-- script/local/my_thin_ctl --

  1. !/bin/bash

thin $1 -C /apps/umlaut/config/umlaut_config/deploy/thin_cluster.yml --