Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christopher
committed
Jun 26, 2016
1 parent
15d6144
commit ffd59a4
Showing
3 changed files
with
25 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,17 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
oldrev=$1 | ||
newrev=$2 | ||
|
||
run() { | ||
[ -x $1 ] && $1 $oldrev $newrev | ||
} | ||
|
||
echo files changed: $(git diff $oldrev $newrev --diff-filter=ACDMR --name-only | wc -l) | ||
|
||
umask 002 | ||
|
||
git submodule sync && git submodule update --init --recursive | ||
|
||
run deploy/before_restart | ||
run deploy/restart && run deploy/after_restart |
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 @@ | ||
#!/bin/bash |
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,7 @@ | ||
#!/bin/bash | ||
|
||
export PATH="$HOME/.rbenv/bin:$PATH" | ||
eval "$(rbenv init -)" | ||
|
||
bin/stop | ||
bin/start |