Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Makefile for post receive jobs
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |