Permalink
Browse files

handle staging

  • Loading branch information...
1 parent f7481a2 commit a08067d63582643f6963995c07fa7b9f1d543415 @gozer gozer committed Nov 17, 2010
Showing with 10 additions and 4 deletions.
  1. +1 −1 bin/linkdrop-sync
  2. +9 −3 bin/update
View
2 bin/linkdrop-sync
@@ -1,7 +1,7 @@
#!/bin/sh
ME=`hostname -s`
-HOSTS="rd-linkdrop-01 rd-linkdrop-02"
+HOSTS="rd-linkdrop-01 rd-linkdrop-02 rd-linkdrop-stage-01"
ARGS=$*
for h in $HOSTS; do
View
12 bin/update
@@ -3,11 +3,17 @@
source ~/linkdrop-env/bin/activate
#if run from a hook, GIT_DIR is set
-
unset GIT_DIR
-export PATH=$PATH:$HOME/bin
-cd ~/linkdrop;
+#find ourselves
+SELF=`readlink -f $0`
+WORKDIR=`dirname $SELF`
+
+LINKDROP_HOME=`cd $WORKDIR/.. && pwd`
+
+export PATH=$PATH:$LINKDROP_HOME/bin
+
+cd $LINKDROP_HOME
PRE=`git show --pretty=format:"%H|%ci" --quiet`

0 comments on commit a08067d

Please sign in to comment.