Commit 7fbc93c4 by Tobias Macey Committed by George Song

Fixed issues with app.rb require

When trying to launch the app if the `LOAD_PATH` was not properly set
the unicorn server was unable to load the `app.rb` source
file. Updated to use the `expand_path` method from the File class.
parent 5a1d91f8
require 'tmpdir' require 'tmpdir'
# Load app.rb to get all dependencies. # Load app.rb to get all dependencies.
require 'app.rb' require File.expand_path('../../app.rb', __FILE__)
# Make sure elasticsearch is configured correctly # Make sure elasticsearch is configured correctly
UnicornHelpers.exit_on_invalid_index UnicornHelpers.exit_on_invalid_index
......
require 'tmpdir' require 'tmpdir'
# Load app.rb to get all dependencies. # Load app.rb to get all dependencies.
require 'app.rb' require File.expand_path('../../app.rb', __FILE__)
# Make sure elasticsearch is configured correctly # Make sure elasticsearch is configured correctly
UnicornHelpers.exit_on_invalid_index UnicornHelpers.exit_on_invalid_index
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment