Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 5744e7c

Browse files
committed
chore(scripts): add scripts
1 parent 5771ef4 commit 5744e7c

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

start-hook.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
cd "$(dirname "$0")"
4+
5+
#
6+
# starts a hookshot server that will `git pull` whenever
7+
# GitHub pings us
8+
#
9+
# See: https://github.com/Coreh/hookshot
10+
#
11+
hookshot -p 9001 "git fetch && git reset --hard origin/master && npm install && bower install && gulp docs"

watch-hook.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
cd "$(dirname "$0")"
4+
5+
#
6+
# spawns the hook, and restarts it if it goes down
7+
#
8+
# See: https://github.com/nodejitsu/forever
9+
#
10+
forever start -c bash start-hook.sh

0 commit comments

Comments
 (0)