Sha256: 031c9bbe548b950cd37ed12f85f6cec38872d3c1b8597e63ce4ce49951d76b16

Contents?: true

Size: 547 Bytes

Versions: 1

Compression:

Stored size: 547 Bytes

Contents

require "spring-jruby/platform"
# This is necessary for the terminal to work correctly when we reopen stdin.
Process.setsid if Spring.fork?

require "spring-jruby/application"

app = Spring::Application.new(
  Spring::WorkerChannel.remote_endpoint,
  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

1 entries across 1 versions & 1 rubygems

Version Path
spring-jruby-1.4.3 lib/spring-jruby/application/boot.rb