From 9e2e821ecb02e4a82dcd9dae29e7cd479316fe80 Mon Sep 17 00:00:00 2001 From: ShixiangWang Date: Fri, 26 Jul 2024 00:06:06 +0800 Subject: [PATCH] Create deploy_basic.R --- deploy_basic.R | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 deploy_basic.R diff --git a/deploy_basic.R b/deploy_basic.R new file mode 100644 index 00000000..ba98cbd7 --- /dev/null +++ b/deploy_basic.R @@ -0,0 +1,26 @@ +#!/usr/bin/env Rscript +# Copyright (C) 2021-2024 Xena Shiny Team + +# The cache directory and port all should be consistent with +# configs in Dockerfile. + +# Check system info +print(Sys.info()) + +# Set options and run app + +if(dir.exists("/xena")){ + # hiplot + #xena.cacheDir = "/xena" + #xena.zenodoDir = "/xena/datasets" +} else { + # zhoulab + xena.cacheDir = "/home/shiny/apps/xena/cache" + xena.zenodoDir = "/home/shiny/apps/xena/datasets/" +} +options(xena.cacheDir = xena.cacheDir, xena.zenodoDir = xena.zenodoDir) +options(xena.runMode = "server") + +library(UCSCXenaShiny) +app_run2("server", content = "sq") +