Created
September 3, 2014 20:52
-
-
Save rafaelrinaldi/f265509e6963100ddc97 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
MALACO_PORT=9000 | |
VERSION=v.0.2.3 (beta) | |
LICENSE=MIT license | |
help: | |
@sh help.sh | |
@echo "Malaco $(VERSION) released under $(LICENSE)." | |
@echo "" | |
status: | |
@DEBUG=* node index.js | |
import: | |
@DEBUG=* node lib/importer.js | |
connect: refresh | |
@cd ../siga-app && NODE_ENV=production gulp | |
serve: | |
@ngrok $(MALACO_PORT) | |
refresh: | |
@node index.js # Will silently grab latest status data | |
@echo 'define(' `cat ./stations.json` ');' | sed -e 's/^[ \t]*//' | tr -d '\n' > ../siga-app/app/assets/javascripts/data/stations.js | |
@echo 'define(' `cat ./status.json` ');' | sed -e 's/^[ \t]*//' | tr -d '\n' > ../siga-app/app/assets/javascripts/data/status.js | |
simulation: | |
@cd ~/Desktop/simulator && python -m SimpleHTTPServer 8000 | |
.PHONY: help |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment