Skip to content

Instantly share code, notes, and snippets.

@mursts
Created August 15, 2014 15:35
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/8c3a590dc75936355442 to your computer and use it in GitHub Desktop.
Save mursts/8c3a590dc75936355442 to your computer and use it in GitHub Desktop.
GAE/Pのプロジェクトテンプレートを作成する(webapp2)
#!/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