Skip to content

Instantly share code, notes, and snippets.

@maxim
Created December 4, 2008 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxim/32052 to your computer and use it in GitHub Desktop.
Save maxim/32052 to your computer and use it in GitHub Desktop.
# command used to start thin
thin -s 1 -C thin/production_config.yml -R thin/config.ru start
# thin/config.ru
require 'lib/sinatra/lib/sinatra'
Sinatra::Application.default_options.merge!(
:run => false,
:env => :production
)
require 'init'
run Sinatra.application
# thin/production_config.yml
environment: production
chdir: /var/www/jaxer/current
address: 127.0.0.1
user: root
group: root
port: 4567
pid: /var/www/jaxer/tmp/thin.pid
rackup: /var/www/jaxer/thin/config.ru
log: /var/www/jaxer/log/thin.log
max_conns: 1024
timeout: 30
max_persistent_conns: 512
daemonize: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment