1
0
Fork 0
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:
Larry Marburger 2013-07-16 16:43:41 -04:00
parent 816c67d2e9
commit 0cf460fe57

View file

@ -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)