|
Luamon is a utility for quick live development in Lua. It will monitor for any changes in your source and automatically restart your Lua script or application. It works by watching for file and directories changes using the Inotify API. It was inspirited by nodemon, but made for Lua.
https://github.com/edubart/luamon
Features
Automatic restarting of application.
Default for lua, but easy to run any executable (such as python, make, etc).
Ignoring specific files or directories.
Watch specific directories.
Works with server applications or one time run utilities and REPLs.
InstallationInstall using LuaRocks:
luarocks install luamon
Usageluamon myscript.lua
Just use luamon instead of lua to run your code, your process will automatically restart when any lua file in the current directory changes. It's possible to use it for any other kind of application too, see its help.
LimitationsThe packages depends on POSIX and Inotify APIs so it works only on systems that supports them, such as Linux.
IssuesReport on the project page at https://github.com/edubart/luamon