File: rackup.1

package info (click to toggle)
ruby-rack 2.0.6-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,392 kB
  • sloc: ruby: 14,467; sh: 12; makefile: 6
file content (107 lines) | stat: -rw-r--r-- 2,425 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "RACKUP" "1" "December 2010" "" ""
.
.SH "NAME"
\fBrackup\fR
.
.P
rackup(1) \-\- An utility for run Rack\-based applications
.
.SH "SYNOPSIS"
\fBrackup\fR [ruby options] [rack options] [rackup config]
.
.SH "DESCRIPTION"
Rackup is a useful tool for running Rack applications, which uses the Rack::Builder DSL to configure middleware and build up applications easily\.
.
.P
rackup automatically figures out the environment it is run in, and runs your application as FastCGI, CGI, or standalone with Mongrel or WEBrick \-all from the same configuration\.
.
.SH "OPTIONS"
Ruby options:
.
.TP
\fB\-e\fR, \fB\-\-eval\fR [LINE]
evaluate a LINE of code
.
.TP
\fB\-d\fR, \fB\-\-debug\fR
set debugging flags (set $DEBUG to true)
.
.TP
\fB\-w\fR, \fB\-\-warn\fR
turn warnings on for your script
.
.TP
\fB\-I\fR, \fB\-\-include\fR [PATH]
specify $LOAD_PATH (may be used more than once)
.
.TP
\fB\-r\fR, \fB\-\-require\fR [LIBRARY]
require the library, before executing your script
.
.P
Rack options:
.
.TP
\fB\-s\fR, \fB\-\-server\fR [SERVER]
serve using SERVER (webrick/mongrel)
.
.TP
\fB\-o\fR, \fB\-\-host\fR [HOST]
listen on HOST (default: 0\.0\.0\.0)
.
.TP
\fB\-p\fR, \fB\-\-port\fR [PORT]
use PORT (default: 9292)
.
.TP
\fB\-E\fR, \fB\-\-env\fR [ENVIRONMENT]
use ENVIRONMENT for defaults (default: development)
.
.TP
\fB\-D\fR, \fB\-\-daemonize\fR
run daemonized in the background
.
.TP
\fB\-P\fR, \fB\-\-pid\fR [FILE]
file to store PID (default: rack\.pid)
.
.P
Common options:
.
.TP
\fB\-h\fR, \fB\-\-help\fR
Show the help message
.
.TP
\fB\-\-version\fR
Show version
.
.SH "EXAMPLES"
This is a simple example on how to start an application based on Rack with rackup:
.
.P
$ rackup \-Ilib blog/config\.ru
.
.P
[2010\-12\-10 15:01:11] INFO WEBrick 1\.3\.1
.
.P
[2010\-12\-10 15:01:11] INFO ruby 1\.9\.2 (2010\-08\-18) [x86_64\-linux]
.
.P
[2010\-12\-10 15:01:11] INFO WEBrick::HTTPServer#start: pid=4496 port=9292
.
.SH "AUTHORS"
Copyright (C) 2007, 2008, 2009, 2010 \fBChristian Neukirchen\fR \fB<http://purl\.org/net/chneukirchen>\fR
.
.P
For a complete list of authors and contributors to the project, please take a look here \fIhttps://github\.com/rack/rack/contributors\fR
.
.P
This manual page was written by Ermenegildo Fiorito \fIfiorito\.g@gmail\.com\fR for the Debian Project
.
.SH "SEE ALSO"
ruby(1) \fIhttp://rack\.rubyforge\.org\fR