turbo
turbo copied to clipboard
Not able retriev files with wildcards along ljsyscall is installed
In my index.html I am trying to load a js script (my.js) by:
<body>
<script type="text/javascript" charset="utf-8" src="my.js">
...
</body>
On the server I am using the following:
local webApp = turbo.web.Application:new({
{"^/$", turbo.web.StaticFileHandler, "/var/www/html/index.html"},
{"^/(.*js)$", turbo.web.StaticFileHandler, "/var/www/html/"},
})
All the above works fine as long as I do not install ljsyscall. If I install ljsyscall via luarocks install ljsyscall
, I do get following error message, even I do not use syscall at all:
[E 2021/05/23 11:23:03] [web.lua] Could not read file; nil.
Once I remove ljsyscall with luarocks remove ljsyscall
everthing works fine again.