-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
35 lines (29 loc) · 861 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
default:
@just --choose;
run-local:
#! /usr/bin/env -S bash -i
\R -q -s -e \
'shiny::runApp(host="127.0.0.1",port=8081,launch.browser=FALSE)';
sync server='omega':
#! /usr/bin/env -S bash -i
rsync -az -e 'ssh' -r --delete --info=progress2 \
--exclude 'renv' --exclude '.git' \
{{justfile_directory()}} {{server}}:projects;
build-container:
#! /usr/bin/env -S bash -i
docker buildx build -t pdxplorer-app:latest .;
build-container-mac:
#! /usr/bin/env -S bash -i
docker buildx build --platform=linux/amd64 -t pdxplorer-app:latest .;
run-container port='8081':
#! /usr/bin/env -S bash -i
docker stop pdxplorer-app;
docker rm pdxplorer-app;
docker run -d \
--restart always \
-p {{port}}:80 \
--name pdxplorer-app \
pdxplorer-app:latest;
monitor:
#! /usr/bin/env -S bash -i
docker logs -f pdxplorer-app;