Files
GitJournal/reload.sh
Vishesh Handa 126bf29bd6 Add a script to auto reload the app
This requires the app to be run with -

flutter run --pid-file /tmp/flutter.pid
2019-01-08 22:16:11 +01:00

8 lines
127 B
Bash
Executable File

#!/usr/bin/env bash
while true
do
find lib/ -name '*.dart' | \
entr -d -p kill -USR1 $(cat /tmp/flutter.pid)
done