lapis
lapis copied to clipboard
run files with `lapis exec`
It would be nice if there was a prettier way to do this than lapis exec 'loadfile"filename"()'
is there a reason you need to use exec? Most of lapis can also run on the command line without openresty?
Also you can use require
to load and execute a file right away, just leave off the .lua
pretty much just for aesthetics; a script that runs a file of code inside the server looks prettier if you can write "lapis execfile <filename>" or something like that, specially if you have to change it after not looking at it for two years.