From 5862bbe3df354c804bb4e439dedf4bc3570160c1 Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Sun, 23 Sep 2012 16:02:33 +0200 Subject: [PATCH] fix nil api_endpoint --- config.ru | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.ru b/config.ru index 72980fa4..86f23ef5 100644 --- a/config.ru +++ b/config.ru @@ -4,7 +4,7 @@ require 'travis/api/app' env, api_endpoint, client_endpoint, run_api, watch, deflate = ENV.values_at('RACK_ENV', 'API_ENDPOINT', 'CLIENT_ENDPOINT', 'RUN_API', 'WATCH', 'DEFLATE') env ||= "development" -api_endpoint ||= "https://api.#{Travis.config.host}" unless run_api +api_endpoint ||= "https://api.#{Travis.config.host}" unless run_api and run_api != '0' run_api ||= api_endpoint.to_s.start_with? '/' api_endpoint ||= "/api" if run_api and run_api != '0' client_endpoint ||= "/"