Scroll to navigation

THIN(1) User Commands THIN(1)

NAME

thin - fast and very simple Ruby web server

SYNOPSIS

thin [options] start|stop|restart|config|install

DESCRIPTION

Server options:

bind to HOST address (default: 0.0.0.0)
use PORT (default: 3000)
bind to unix domain socket
Run using swiftiply
Rack adapter to use (default: autodetect) (rack, rails, ramaze, merb, file)
Load a Rack config file instead of Rack adapter
Change to dir before starting
Mount the Stats adapter under PATH

SSL options:

Enables SSL
Path to private key
Path to certificate
Disables (optional) client cert requests
TLSv1, TLSv1_1, TLSv1_2
Example: HIGH:!ADH:!RC4:-MEDIUM:-LOW:-EXP:-CAMELLIA

Adapter options:

Framework environment (default: development)
Mount the app under PATH (start with /)

Daemon options:

Run daemonized in the background
File to redirect output (default: /build/thin-W9w7O9/thin-1.8.1/log/thin.log)
File to store PID (default: tmp/pids/thin.pid)
User to run daemon as (use with -g)
Group to run daemon as (use with -u)
Additional text to display in process listing

Cluster options:

Number of servers to start
Send command to only one server of the cluster
Load options from config file
Send command to each config files in DIR
Restart the cluster one by one (only works with restart command)
Maximum wait time for server to be started in seconds (use with -O)

Tuning options:

Backend to use, full classname
Request or command timeout in sec (default: 30)
Force the execution of the command
Maximum number of open file descriptors (default: 1024) Might require sudo to set higher than 1024
Maximum number of persistent connections (default: 100)
Call the Rack application in threads [experimental]
Sets the size of the EventMachine threadpool. (default: 20)
Disable the use of epoll

Common options:

require the library
Silence all logging
Enable debug logging
Set tracing on (log raw request/response)
Show this message
Show version

SEE ALSO

The full documentation for thin is maintained as a Texinfo manual. If the info and thin programs are properly installed at your site, the command

info thin

should give you access to the complete manual.

February 2023 thin 1.8.1 codename Infinite Smoothie