Last active
November 23, 2022 00:01
-
-
Save bgrins/c58973b01ca572581af3bde2e783f532 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Automatically restart datasette when a db file changes | |
sh -c '$PWD/scripts/restart-datasette.sh &' && fswatch -o fixtures.db | xargs -n1 -I{} sh -c '$PWD/scripts/restart-datasette.sh &' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsof -ti tcp:8080 && kill -9 $(lsof -ti tcp:8080) && echo "Killed server on 8080" | |
datasette -p 8080 fixtures.db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment