about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rwxr-xr-xbin/unicorn_rails4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/unicorn_rails b/bin/unicorn_rails
index ed235ba..219f962 100755
--- a/bin/unicorn_rails
+++ b/bin/unicorn_rails
@@ -132,8 +132,8 @@ def rails_builder(daemonize)
   lambda do ||
     # Load Rails and (possibly) the private version of Rack it bundles.
     begin
-      require 'config/boot'
-      require 'config/environment'
+      require ::File.expand_path('config/boot')
+      require ::File.expand_path('config/environment')
     rescue LoadError => err
       abort "#$0 must be run inside RAILS_ROOT: #{err.inspect}"
     end