323c01a235a8b6c9c88c9c7ba7532db2e165b86c
jcasper
  Mon Jun 27 17:03:34 2016 -0700
Allow command-line CGIs to find js/css when run on genome-preview

diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c
index 44597fb..5371223 100644
--- src/hg/lib/hdb.c
+++ src/hg/lib/hdb.c
@@ -3272,31 +3272,31 @@
 }
 
 boolean hIsBrowserbox()
 /* Return TRUE if this is the browserbox virtual machine */
 {
 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");
+return hHostHasPrefix("genome-preview") || hHostHasPrefix("hgwalpha");
 }
 
 char *hBrowserName()
 /* Return browser name based on host name */
 {
 return (hIsPreviewHost() ? "Preview Genome Browser" :
         (hIsPrivateHost() ? "TEST Genome Browser" : "Genome Browser"));
 }
 
 int hOffsetPastBin(char *db, char *chrom, char *table)
 /* Return offset into a row of table that skips past bin
  * field if any. */
 {
 struct hTableInfo *hti = hFindTableInfo(db, chrom, table);
 if (hti == NULL)