Spaces:
Configuration error
Configuration error
Fedir Zadniprovskyi
commited on
Commit
·
93ac8e8
1
Parent(s):
2e4eb59
chore: add lsyncd config
Browse files- Taskfile.yaml +1 -1
- flake.nix +1 -0
- lsyncd.conf +20 -0
Taskfile.yaml
CHANGED
|
@@ -19,7 +19,7 @@ tasks:
|
|
| 19 |
sources:
|
| 20 |
- Dockerfile.*
|
| 21 |
- faster_whisper_server/*.py
|
| 22 |
-
sync: lsyncd
|
| 23 |
# Python's urllib3 takes forever when ipv6 is enabled
|
| 24 |
# https://support.nordvpn.com/hc/en-us/articles/20164669224337-How-to-disable-IPv6-on-Linux
|
| 25 |
disable-ipv6: sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 && sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
|
|
|
|
| 19 |
sources:
|
| 20 |
- Dockerfile.*
|
| 21 |
- faster_whisper_server/*.py
|
| 22 |
+
sync: lsyncd lsyncd.conf
|
| 23 |
# Python's urllib3 takes forever when ipv6 is enabled
|
| 24 |
# https://support.nordvpn.com/hc/en-us/articles/20164669224337-How-to-disable-IPv6-on-Linux
|
| 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
CHANGED
|
@@ -28,6 +28,7 @@
|
|
| 28 |
pv
|
| 29 |
pyright
|
| 30 |
python311
|
|
|
|
| 31 |
ruff
|
| 32 |
websocat
|
| 33 |
];
|
|
|
|
| 28 |
pv
|
| 29 |
pyright
|
| 30 |
python311
|
| 31 |
+
rsync
|
| 32 |
ruff
|
| 33 |
websocat
|
| 34 |
];
|
lsyncd.conf
ADDED
|
@@ -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 |
+
}
|