87d46dad5897a7f4c343c33662e63dd7ccca0674 max Tue Oct 7 02:22:45 2014 -0700 adding a hg.conf option "isGbib", after gbib meeting diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c index e704bf0..760b86e 100644 --- src/hg/lib/hdb.c +++ src/hg/lib/hdb.c @@ -3331,33 +3331,31 @@ * may be repurposed to direct users to the preview site instead of development site. */ { return hHostHasPrefix("hgwdev") || hHostHasPrefix("genome-test"); // FIXME: If genome-test } boolean hIsBetaHost() /* Return TRUE if this is running on beta (QA) web-server. * Use sparingly as behavior on beta should be as close to RR as possible. */ { return hHostHasPrefix("hgwbeta"); } boolean hIsBrowserbox() /* Return TRUE if this is the browserbox virtual machine */ { -char name[256]; -gethostname(name, sizeof(name)); -return (startsWith("browserbox", name)); +return (cfgOptionBooleanDefault("isGbib", FALSE)); } boolean hIsPreviewHost() /* Return TRUE if this is running on preview web-server. The preview * server is a mirror of the development server provided for public * early access. */ { if (cfgOption("test.preview")) return TRUE; return hHostHasPrefix("genome-preview"); } char *hBrowserName() /* Return browser name based on host name */ {