Sha256: 5135a19c85ad2c92d3fc76826b3e36f2c1b89a35496abe09eb78b36ad0d6bd5f

Contents?: true

Size: 519 Bytes

Versions: 21

Compression:

Stored size: 519 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),
  Spring::Env.new(log_file: IO.for_fd(4))
)

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

21 entries across 21 versions & 3 rubygems

Version Path
spring-4.1.3 lib/spring/application/boot.rb
spring-4.1.2 lib/spring/application/boot.rb
spring-4.1.1 lib/spring/application/boot.rb
spring-4.1.0 lib/spring/application/boot.rb
spring-4.0.0 lib/spring/application/boot.rb
spring-3.1.1 lib/spring/application/boot.rb
spring-3.1.0 lib/spring/application/boot.rb
spring-3.0.0 lib/spring/application/boot.rb
nrispring-2.1.3 lib/spring/application/boot.rb
nrispring-2.1.2 lib/spring/application/boot.rb
nrispring-2.1.1 lib/spring/application/boot.rb
spring-2.1.1 lib/spring/application/boot.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/spring-2.1.0/lib/spring/application/boot.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/spring-2.1.0/lib/spring/application/boot.rb
spring-2.1.0 lib/spring/application/boot.rb
spring-2.0.2 lib/spring/application/boot.rb
spring-2.0.1 lib/spring/application/boot.rb
spring-2.0.0 lib/spring/application/boot.rb
spring-1.7.2 lib/spring/application/boot.rb
spring-1.7.1 lib/spring/application/boot.rb