From 2adf6c09c4697fb23abff3e6548e2fdb73f328f6 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 14 Sep 2018 12:31:29 +0200 Subject: Enable setting app base path from environment. --- config.ru | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config.ru') diff --git a/config.ru b/config.ru index 897dd21..a772481 100644 --- a/config.ru +++ b/config.ru @@ -1,2 +1,6 @@ require './registration.rb' -run RegistrationApp + +base_path = ENV['NUREG_BASE'] || '/' +map base_path do + run RegistrationApp +end -- cgit v1.2.3