diff options
| author | unwox <me@unwox.com> | 2025-09-08 15:43:32 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2025-09-08 15:43:32 +0600 |
| commit | cabcbdce77b71e24241e9aec2765501327592531 (patch) | |
| tree | 5acb8d947fcabc237bed4779a5face3d0c9196b4 /run.sh | |
| parent | 88d1725520afde9fe10a3daa1ad5c1c0a552f041 (diff) | |
update according to luna changes
Diffstat (limited to 'run.sh')
| -rwxr-xr-x | run.sh | 17 |
1 files changed, 5 insertions, 12 deletions
@@ -3,30 +3,23 @@ set -e usage () { echo "Usage: - serve [--jit] Serve the site pages + serve WORKERS Serve the site pages deploy Deploy changes to the production server" } serve () { - variant="$1" - if [ "$variant" = "--jit" ]; then - echo "running jit" - go run -tags jit ../. -n 1 main.lua bin/serve.fnl - else - echo "running puc" - LUA_CPATH="/usr/local/lib/lua/5.4/?.so;/usr/local/lib/lua/5.4/loadall.so;./?.so;$(guix build lua-lpeg)/lib/lua/5.3/?.so" \ - go run -tags puc ../. -n 1 main.lua bin/serve.fnl - fi + echo "running jit" + go run -tags jit ../. -n ${1:-1} bin/serve.fnl } deploy () { git stash -u scp -r bin root@everytea.ru:~/whitetoad.ru/ scp -r pages root@everytea.ru:~/whitetoad.ru/ + scp -r etc root@everytea.ru:~/whitetoad.ru/ + scp -r vendor root@everytea.ru:~/whitetoad.ru/ scp static/* root@everytea.ru:~/whitetoad.ru/static/ || true scp -r static/fonts root@everytea.ru:~/whitetoad.ru/static/fonts - scp -r vendor root@everytea.ru:~/whitetoad.ru/ - scp main.lua root@everytea.ru:~/whitetoad.ru/ scp forms.fnl root@everytea.ru:~/whitetoad.ru/ scp lib.fnl root@everytea.ru:~/whitetoad.ru/ scp macros.fnl root@everytea.ru:~/whitetoad.ru/ |
