class Rack::Server

Remove the chdir, not sure why he put that there. Bad hack, gotta figure out another way to fix this

Public Instance Methods

daemonize_app() click to toggle source
# 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