Skip to content

Commit

Permalink
Create deploy_basic.R
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixiangWang committed Jul 25, 2024
1 parent 36b0518 commit 9e2e821
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions deploy_basic.R
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 9e2e821

Please sign in to comment.