Serves the webpages in frontend/dist
along with running backend services.
The scripts
folder included with the binary should be in the same directory as the binary. Rscript
should be present in $PATH.
apt-get install -y r-base-core r-base-dev libssl-dev libcurl4-openssl-dev libxml2-dev
Rscript -e 'install.packages(c("tidyverse", "umap", "ggrastr", "pins", "rmarkdown"))'
git clone https://github.com/DesmondWillowbrook/Librarian.git
cd Librarian
./run-server.sh
Alternatively, in case you haven't made any changes to the frontend, you can just run the server binary without rebuilding the frontend website.
cd server
cargo run --release
LIBRARIAN_PORT
(defaults to 8186): port to listen to.LIBRARIAN_INDEX_PATH
(defaults to../frontend/dist
): path to directory to serve (the one withindex.html
).LIBRARIAN_EXAMPLE_PATH
(defaults to../frontend/example_inputs
): path to example input files.
RUST_LOG=trace cargo run --release
NOTE: Setting RUST_LOG
to trace
will cause the server to not delete temporary directories after use. This is useful for debugging purposes.