From d916e77e9dfd6c903113d6b186a5d027ae0ab33d Mon Sep 17 00:00:00 2001 From: Gavin Brock Date: Sat, 16 Apr 2011 21:04:53 +0900 Subject: [PATCH] Added Makefile for post receive jobs --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7e057ae --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +# The release management jobs. This is normally a Rakefile +# but because rails hijaks rake (and won't let it run if +# it has any issues, such as outdated modules), this has +# to be done by make. -- Gavin + +default: + @echo "make: No default action" + +pre_receive: + @echo "make: Nothing to do" + + +post_receive: + @echo "make: Running bundle install" + bundle install --local + @echo "make: Running rake db:migrate" + rake db:migrate + @touch "tmp/restart.txt" + +restart: + @echo "make: Ackbar restart - touching tmp/restart.txt" + @touch "tmp/restart.txt"