Spaces:
Configuration error
Configuration error
File size: 409 Bytes
93ac8e8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
local host = os.getenv("SERVER_HOST")
local dir = io.popen("basename $(pwd)"):read("*a"):gsub("\n", "")
settings {
nodaemon = true
}
sync {
default.rsyncssh,
source = ".",
delay = 0,
host = host,
targetdir = dir,
excludeFrom = ".gitignore",
exclude = { ".git" },
rsync = {
archive = true, -- preserves permissions, symlinks, etc.
compress = true,
}
}
|