Deployed to dev01 on the Rrackspace cloud.

This commit is contained in:
Jonathan Bernard
2011-03-11 12:32:06 +00:00
parent 3c3d553768
commit b59b628cb5
4 changed files with 26 additions and 2 deletions

View File

@ -2,6 +2,7 @@ MODS = $(wildcard src/*.erl)
BEAMS = $(MODS:src/%.erl=ebin/%.beam)
TEST_MODS = $(wildcard test/*.erl)
TEST_BEAMS = $(TEST_MODS:test/%.erl=test/%.beam)
YAWS_ROOT=/usr/lib/yaws/timestamper
all : compile test
@ -36,3 +37,16 @@ ebin/%.beam : src/%.erl
test/%.beam : test/%.erl
@echo Compiling sources...
erlc -W -o test $<
deploy: compile
@service yaws stop
@echo Removing existing artifacts.
@rm -r $(YAWS_ROOT)/*
@echo Copying current artifacts.
@cp -r www $(YAWS_ROOT)
@cp -r ebin $(YAWS_ROOT)
@mkdir $(YAWS_ROOT)/include
@cp -r src/ts_db_records.hrl $(YAWS_ROOT)/include/.
@cp yaws.prod.conf $(YAWS_ROOT)/yaws.conf
@service yaws start
@echo Done.