

chore: add lsyncd config
@133d38e62989a6a474c8eb25b4ff09025ef04e11
--- Taskfile.yaml
+++ Taskfile.yaml
... | ... | @@ -19,7 +19,7 @@ |
19 | 19 |
sources: |
20 | 20 |
- Dockerfile.* |
21 | 21 |
- faster_whisper_server/*.py |
22 |
- sync: lsyncd -nodaemon -delay 0 -rsyncssh . gpu-box faster-whisper-server |
|
22 |
+ sync: lsyncd lsyncd.conf |
|
23 | 23 |
# Python's urllib3 takes forever when ipv6 is enabled |
24 | 24 |
# https://support.nordvpn.com/hc/en-us/articles/20164669224337-How-to-disable-IPv6-on-Linux |
25 | 25 |
disable-ipv6: sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 && sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1 |
--- flake.nix
+++ flake.nix
... | ... | @@ -28,6 +28,7 @@ |
28 | 28 |
pv |
29 | 29 |
pyright |
30 | 30 |
python311 |
31 |
+ rsync |
|
31 | 32 |
ruff |
32 | 33 |
websocat |
33 | 34 |
]; |
+++ lsyncd.conf
... | ... | @@ -0,0 +1,20 @@ |
1 | +local host = os.getenv("SERVER_HOST") | |
2 | +local dir = io.popen("basename $(pwd)"):read("*a"):gsub("\n", "") | |
3 | + | |
4 | +settings { | |
5 | + nodaemon = true | |
6 | +} | |
7 | + | |
8 | +sync { | |
9 | + default.rsyncssh, | |
10 | + source = ".", | |
11 | + delay = 0, | |
12 | + host = host, | |
13 | + targetdir = dir, | |
14 | + excludeFrom = ".gitignore", | |
15 | + exclude = { ".git" }, | |
16 | + rsync = { | |
17 | + archive = true, -- preserves permissions, symlinks, etc. | |
18 | + compress = true, | |
19 | + } | |
20 | +} |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?