Created
October 8, 2009 22:54
-
-
Save cschneid/205497 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| thin -s 1 -C config.yml -R config.ru start | |
| gittr irclogger # cat config.yml | |
| --- | |
| environment: production | |
| chdir: /srv/ruby/irclogger | |
| address: 127.0.0.1 | |
| user: ruby | |
| group: ruby | |
| port: 10000 | |
| pid: /srv/ruby/irclogger/thin.pid | |
| rackup: /srv/ruby/irclogger/config.ru | |
| log: /srv/ruby/irclogger/thin.log | |
| max_conns: 1024 | |
| timeout: 30 | |
| max_persistent_conns: 512 | |
| daemonize: true | |
| gittr irclogger # cat config.ru | |
| $:.unshift './vendor/sinatra/lib' | |
| require 'sinatra' | |
| Sinatra::Application.default_options.merge!( | |
| :run => false, | |
| :env => :production | |
| ) | |
| log = File.open("app.log", "a+") | |
| STDERR.reopen log | |
| STDOUT.reopen log | |
| log << "----- SERVER STARTING -----" | |
| require 'irclogger' | |
| run Sinatra.application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $HTTP["host"] =~ "(www\.)?irclogger\.com" { | |
| proxy.balance = "fair" | |
| proxy.server = ("/" => | |
| ( | |
| ( "host" => "127.0.0.1", "port" => 10000 ) | |
| ) | |
| ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment