Skip to content

Instantly share code, notes, and snippets.

@moos3
Created May 2, 2011 11:57
Show Gist options
  • Save moos3/951497 to your computer and use it in GitHub Desktop.
Save moos3/951497 to your computer and use it in GitHub Desktop.
---
environment: production
chdir: /path/to/my/app
address: 127.0.0.1
user: root
group: root
port: 4567
pid: /path/to/my/app/thin.pid
rackup: /path/to/my/app/config.ru
log: /path/to/my/app/thin.log
max_conns: 1024
timeout: 30
max_persistent_conns: 512
daemonize: true
thin -s 2 -C config.yml -R config.ru start
$HTTP["host"] =~ "(www\.)?mydomain\.com" {
proxy.balance = "fair"
proxy.server = ("/" =>
(
( "host" => "127.0.0.1", "port" => 4567 ),
( "host" => "127.0.0.1", "port" => 4568 )
)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment