robot_cleaning_game/backend/dev.sh

10 lines
410 B
Bash
Executable file

#!/bin/sh
# Watch for changes to .clj files and auto-restart the server
# fd -e clj: Find all files ending in .clj
# entr -r: Run the command when files change, -r flag restarts the command on re-trigger
# clojure: Clojure CLI
# -M: Use the main alias from deps.edn (if defined)
# -m game-server.main: Run the -main function from game-server.main namespace
fd -e clj | entr -r clojure -M -m game-server.main