Sha256: 1f8d698fc14c5b9acbf47facb8f6206399cf7ffc6230ef36d6472c6d1bd75e39

Contents?: true

Size: 476 Bytes

Versions: 22

Compression:

Stored size: 476 Bytes

Contents

# This is necessary for the terminal to work correctly when we reopen stdin.
Process.setsid

require "spring/application"

app = Spring::Application.new(
  UNIXSocket.for_fd(3),
  Spring::JSON.load(ENV.delete("SPRING_ORIGINAL_ENV").dup)
)

Signal.trap("TERM") { app.terminate }

Spring::ProcessTitleUpdater.run { |distance|
  "spring app    | #{app.app_name} | started #{distance} ago | #{app.app_env} mode"
}

app.eager_preload if ENV.delete("SPRING_PRELOAD") == "1"
app.run

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
spring-1.1.2 lib/spring/application/boot.rb
spring-1.1.1 lib/spring/application/boot.rb