Created
August 26, 2014 21:34
-
-
Save mursts/75151e0b97bfbe36ba2f to your computer and use it in GitHub Desktop.
create-gae-project-flask
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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