Class: Rack::Server
- Inherits:
-
Object
- Object
- Rack::Server
- Defined in:
- lib/assette/cli.rb
Overview
Remove the chdir, not sure why he put that there. Bad hack, gotta figure out another way to fix this
Instance Method Summary collapse
Instance Method Details
#daemonize_app ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/assette/cli.rb', line 15 def daemonize_app if RUBY_VERSION < "1.9" exit if fork Process.setsid exit if fork # Dir.chdir "/" STDIN.reopen "/dev/null" STDOUT.reopen "/dev/null", "a" STDERR.reopen "/dev/null", "a" else Process.daemon end end |