Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

This is way easier to type. It requires that "dev_appserver.py" appea…

…r on the $PATH somewhere, but that's not a big deal.
  • Loading branch information...
commit 6b7e4f6a991df2fdd7cb7236b2647dc21ab26635 1 parent 981fc2d
@al-the-x authored
Showing with 24 additions and 0 deletions.
  1. +24 −0 bin/gae-dev
View
24 bin/gae-dev
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+PYTHON=$(which python2.5)
+
+if [[ ! "$PYTHON" ]]; then
+ echo Is Python 2.5 installed? >&2
+ exit 1
+fi
+
+MODULE=$(which dev_appserver.py)
+
+if [[ ! "$MODULE" ]]; then
+ echo "Is Google App Engine installed?" >&2
+ exit 1
+fi
+
+HOSTNAME=$(basename $PWD)
+
+if [[ ! $(grep $HOSTNAME /etc/hosts) ]]; then
+ echo "Is $HOSTNAME in /etc/hosts?" >&2
+ exit 1
+fi
+
+$PYTHON $MODULE -a $HOSTNAME $@ $PWD/app/
Please sign in to comment.
Something went wrong with that request. Please try again.