Skip to content

Commit

Permalink
Merge branch 'release/1.0.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
mbround18 committed Mar 5, 2017
2 parents a1ec876 + f833f19 commit 8901739
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
require 'dalli'
require 'logger'
require 'base64'
require 'socket'
require 'rufus-scheduler'

WORKING_DIR = File.dirname(File.expand_path('..', __FILE__)) unless defined?(WORKING_DIR)
Expand All @@ -13,7 +12,7 @@
USER_HOME = Dir.home unless defined?(USER_HOME)
RACK_ENV = ENV.fetch('RACK_ENV', 'development')
ARK_MANAGER_CLI = find_executable('arkmanager', "#{USER_HOME}/bin") unless defined?(ARK_MANAGER_CLI)
SERVER_IP_ADDRESS = Socket.ip_address_list.detect{|intf| intf.ipv4_private?}.ip_address
SERVER_IP_ADDRESS = ENV.fetch('LISTENING_IP', '0.0.0.0')

if File.exists?("#{WORKING_DIR}/config/env_config.json")
Oj.load_file("#{WORKING_DIR}/config/env_config.json", Hash.new).each_pair { |key,value| ENV[key] = value }
Expand Down

0 comments on commit 8901739

Please sign in to comment.