mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 02:05:57 +02:00
Rubocop update #2751
This commit is contained in:
parent
8946a476c2
commit
7ac6d6b362
5 changed files with 11 additions and 8 deletions
|
@ -3,15 +3,16 @@
|
|||
ENV["RAILS_ENV"] ||= "production"
|
||||
|
||||
root = File.expand_path(File.dirname(__FILE__))
|
||||
root = File.dirname(root) until File.exists?(File.join(root, 'config'))
|
||||
root = File.dirname(root) until File.exist?(File.join(root, 'config'))
|
||||
Dir.chdir(root)
|
||||
|
||||
require File.join(root, "config", "environment")
|
||||
|
||||
$running = true
|
||||
@running = true
|
||||
Signal.trap("TERM") do
|
||||
$running = false
|
||||
@running = false
|
||||
end
|
||||
|
||||
while($running) do
|
||||
# rubocop: disable Style/WhileUntilDo
|
||||
while @running do
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue