Skip to content

Instantly share code, notes, and snippets.

@akalipetis
Last active June 3, 2016 19:47
Show Gist options
  • Save akalipetis/5e4feda016bafc22f0d0b049480061e8 to your computer and use it in GitHub Desktop.
Save akalipetis/5e4feda016bafc22f0d0b049480061e8 to your computer and use it in GitHub Desktop.
Install appengine to SourceLair and setup dev server
# Run with curl -L https://gist.github.com/akalipetis/5e4feda016bafc22f0d0b049480061e8/raw/ce44226bd731b2f9104cd2070d367085f17f1678/bootstrap-appengine.sh | bash
# If you want to have another directory, use bash -s <dir_here> at the end
# Run with curl -L https://gist.github.com/akalipetis/5e4feda016bafc22f0d0b049480061e8/raw/ce44226bd731b2f9104cd2070d367085f17f1678/bootstrap-appengine.sh | bash -s <dir_here>
if [ $1 = ""]; then
dir='./'
else
dir=$1
fi
echo $dir
wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.38.zip
unzip google_appengine_1.9.38.zip
mv google_appengine /mnt/data
rm google_appengine_1.9.38.zip
echo "PATH=$PATH:/mnt/data/google_appengine" > /mnt/project/.env
echo "web: dev_appserver.py --port=$PORT $dir" > /mnt/project/Procfile.dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment