summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Whiting <jpwhiting@kde.org>2013-05-28 02:56:00 (GMT)
committerHéctor Orón Martínez <hector.oron@collabora.co.uk>2014-01-14 10:57:13 (GMT)
commitd9527bcc8d22ea16750ea63a74593cb14558a0c7 (patch)
treed22b3c99af68b56e2f33cc584adbadab419e076a
parent8b7cfd19d825f3c5cd9ed9957642849794f4185b (diff)
downloadopen-build-service-d9527bcc8d22ea16750ea63a74593cb14558a0c7.tar.gz
open-build-service-d9527bcc8d22ea16750ea63a74593cb14558a0c7.tar.xz
Fix RAILS_ROOT with config under /etc/obs/ and symlinks to the rails apps.
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
-rw-r--r--src/api/config/boot.rb2
-rw-r--r--src/webui/config/boot.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/api/config/boot.rb b/src/api/config/boot.rb
index 4c60f2f..dfb97a0 100644
--- a/src/api/config/boot.rb
+++ b/src/api/config/boot.rb
@@ -1,7 +1,7 @@
# Don't change this file!
# Configure your app in config/environment.rb and config/environments/*.rb
-RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
+RAILS_ROOT = "/srv/www/obs/api/" unless defined?(RAILS_ROOT)
module Rails
class << self
diff --git a/src/webui/config/boot.rb b/src/webui/config/boot.rb
index dd5e3b6..1904d61 100644
--- a/src/webui/config/boot.rb
+++ b/src/webui/config/boot.rb
@@ -1,7 +1,7 @@
# Don't change this file!
# Configure your app in config/environment.rb and config/environments/*.rb
-RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
+RAILS_ROOT = "/srv/www/obs/webui/" unless defined?(RAILS_ROOT)
module Rails
class << self