-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deploy using https://github.com/mislav/git-deploy
``` sudo gem install git-deploy git remote add production scabot@scabot:/home/scabot/scabot git deploy setup -r "production" ``` I think this may be needed: `ssh scabot 'cd /home/scabot/scabot && git checkout master'`. `runit` etc is configured for scabot using adriaanm/scala-jenkins-infra@a326d52 From now on, push changes to production using `git push production master`.
- Loading branch information
Showing
5 changed files
with
28 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,8 @@ | ||
#!/usr/bin/env ruby | ||
oldrev, newrev = ARGV | ||
|
||
def run(cmd) | ||
exit($?.exitstatus) unless system "umask 002 && #{cmd}" | ||
end | ||
|
||
run "sbt stage" |
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,3 @@ | ||
#!/bin/sh | ||
|
||
killall -1 java ||: # only java process run by scabot -- will be restarted by runit |
Empty file.
Empty file.