mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
![Evan Phoenix](/assets/img/avatar_default.png)
This allows all existing requests to finish, but does not keep the same socket alive across the exec, so this is not a graceful as it could be.
16 lines
190 B
Ruby
Executable file
16 lines
190 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
#
|
|
# Copyright (c) 2011 Evan Phoenix
|
|
#
|
|
|
|
require 'puma/cli'
|
|
|
|
cli = Puma::CLI.new ARGV
|
|
|
|
begin
|
|
cli.run
|
|
rescue => e
|
|
raise e if $DEBUG
|
|
STDERR.puts e.message
|
|
exit 1
|
|
end
|