Last active
August 29, 2015 14:27
-
-
Save rgarcia/d01e7c63a951975db5b9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
set -e | |
proc=-1 | |
while true; do | |
if [ "$proc" -ne "-1"]; then | |
kill -9 $proc | |
fi | |
make build | |
make run & | |
proc=$! | |
inotifywait -qre close_write . | |
done |
This file contains hidden or 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
.PHONY: build run local-dev | |
build: $(wildcard ./**/*) | |
docker build -t myimage . | |
run: | |
docker run myimage | |
local-dev: | |
./local-dev.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment