Skip to content

Commit

Permalink
add deploy and run scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Sah committed Sep 24, 2011
1 parent 277593f commit 7d181ea
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

echo $GAEPASSWD | python2.5 $GAEDIR/appcfg.py --email=$GAEUSER --passin --application=bbf-status update .
12 changes: 12 additions & 0 deletions run
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

IPADDR=`ifconfig eth0 | perl -ne 'print $1 if /inet addr:([0-9.]+)/;'`

PORT=8083
if [ "x$IPADDR" = "x10.0.1.11" ]; then
PORT=8903
fi

ps u|perl -ne "print \$1 if /^.+? +([0-9]+ ).+dev_appserver.+$PORT/;"|xargs kill

python2.5 -O -OO $GAEDIR/dev_appserver.py -p $PORT -a $IPADDR $* .

0 comments on commit 7d181ea

Please sign in to comment.