Skip to content

Instantly share code, notes, and snippets.

@mursts
Created August 26, 2014 21:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mursts/75151e0b97bfbe36ba2f to your computer and use it in GitHub Desktop.
Save mursts/75151e0b97bfbe36ba2f to your computer and use it in GitHub Desktop.
create-gae-project-flask
#!/bin/sh
if [ $# -eq 0 ]; then
CMD=`basename $0`
echo "usage: ${CMD} projectname"
exit 1
fi
PROJECT_NAME=$1
if [ -d ${PROJECT_NAME} ] ; then
echo "${PROJECT_NAME} is exists"
exit 1
fi
git clone https://github.com/GoogleCloudPlatform/appengine-python-flask-skeleton.git "${PROJECT_NAME}"
cd "${PROJECT_NAME}"
#git remote rm origin
rm -rf .git
pip install -r requirements.txt -t lib
sed -i '' "s/your-application-id-here/${PROJECT_NAME}/g" app.yaml
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment