mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 09:27:19 +02:00
17 lines
330 B
Ruby
Executable file
17 lines
330 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
|
|
ENV["RAILS_ENV"] ||= "production"
|
|
|
|
root = File.expand_path(File.dirname(__FILE__))
|
|
root = File.dirname(root) until File.exists?(File.join(root, 'config'))
|
|
Dir.chdir(root)
|
|
|
|
require File.join(root, "config", "environment")
|
|
|
|
$running = true
|
|
Signal.trap("TERM") do
|
|
$running = false
|
|
end
|
|
|
|
while($running) do
|
|
end
|