mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Add port to DSL
This commit is contained in:
parent
816c67d2e9
commit
0cf460fe57
1 changed files with 6 additions and 0 deletions
|
@ -188,6 +188,12 @@ module Puma
|
|||
@options[:binds] << url
|
||||
end
|
||||
|
||||
# Define the TCP port to bind to. Use +bind+ for more advanced options.
|
||||
#
|
||||
def port(port)
|
||||
@options[:binds] << "tcp://#{Configuration::DefaultTCPHost}:#{port}"
|
||||
end
|
||||
|
||||
# Daemonize the server into the background. Highly suggest that
|
||||
# this be combined with +pidfile+ and +stdout_redirect+.
|
||||
def daemonize(which=true)
|
||||
|
|
Loading…
Add table
Reference in a new issue