diff options
| author | unwox <me@unwox.com> | 2025-09-08 15:35:44 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2025-09-08 15:42:13 +0600 |
| commit | 9470b10bdd9e1cc166a4b9ddfbdf09d1c4818ae8 (patch) | |
| tree | d7d76f00078ea8abd9cac0fc43a66e53d2d81dde /run.sh | |
| parent | 43a3ad32f9a17b23f211f61c28e37296ac4447f9 (diff) | |
update according to changes in luna
Diffstat (limited to 'run.sh')
| -rwxr-xr-x | run.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -12,21 +12,21 @@ serve () { variant="$1" if [ "$variant" = "--jit" ]; then echo "running jit" - go run -tags fts5,jit ../. -n 1 -D main.lua bin/serve.fnl + go run -tags fts5,jit ../. -n 1 -D 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 fts5,puc ../. -n 1 -D main.lua bin/serve.fnl + go run -tags fts5,puc ../. -n 1 -D bin/serve.fnl fi } fetch () { if [ "$variant" = "--jit" ]; then echo "running jit" - go run -tags fts5,jit ../. -n 1 main.lua bin/fetch.fnl + go run -tags fts5,jit ../. -n 1 bin/fetch.fnl else 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 fts5,puc ../. -n 1 main.lua bin/fetch.fnl + go run -tags fts5,puc ../. -n 1 bin/fetch.fnl fi } @@ -38,7 +38,7 @@ deploy () { scp static/* root@everytea.ru:~/everytea.ru/static/ scp texts.fnl root@everytea.ru:~/everytea.ru/ scp fetcher.fnl root@everytea.ru:~/everytea.ru/ - scp main.lua root@everytea.ru:~/everytea.ru/ + scp -r etc/ root@everytea.ru:~/everytea.ru/ ssh root@everytea.ru -- systemctl restart everytea ssh root@everytea.ru -- 'echo "DELETE FROM cache WHERE key like '\''page:%'\''" | sqlite3 ~/everytea.ru/var/db.sqlite' git stash pop |
