Created
August 15, 2014 15:35
-
-
Save mursts/8c3a590dc75936355442 to your computer and use it in GitHub Desktop.
GAE/Pのプロジェクトテンプレートを作成する(webapp2)
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 | |
PROJECT_TEMPLATE_PATH=${HOME}/google-cloud-sdk/platform/google_appengine/new_project_template | |
if [ $# -eq 0 ]; then | |
CMD=`basename $0` | |
echo "usage: ${CMD} projectname" | |
exit 1 | |
fi | |
PROJECT_NAME=$1 | |
cp -R $PROJECT_TEMPLATE_PATH $PROJECT_NAME | |
cd $PROJECT_NAME | |
sed -i '' "s/new-project-template/${PROJECT_NAME}/g" app.yaml | |
echo "New Google App Engine Project Created." | |
echo " ${PROJECT_NAME}" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment