Created
July 14, 2015 23:09
-
-
Save justincampbell/8f87608a1b0d93dbed8c 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
PIDFILE := tmp/server.pid | |
PORT := 4567 | |
default: test stop | |
start: $(PIDFILE) | |
$(PIDFILE): | |
rackup --daemonize --pid $(PIDFILE) --port $(PORT) config.ru | |
sleep 1 | |
test: start | |
curl -i localhost:$(PORT) | grep Location | |
stop: | |
kill $(shell cat $(PIDFILE)) | |
.PHONY: default start test stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment