Skip to content

Instantly share code, notes, and snippets.

@k2wanko
Created February 6, 2018 03:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k2wanko/32b4165f64404bf9909e3487eb5fe366 to your computer and use it in GitHub Desktop.
Save k2wanko/32b4165f64404bf9909e3487eb5fe366 to your computer and use it in GitHub Desktop.
goapp
#!/bin/bash
# Require: $ gcloud components install app-engine-go
gcloud="$(which gcloud)"
[ -L "$gcloud" ] && gcloud="$(readlink "$gcloud")"
appdir="$(dirname "$(dirname "$gcloud")")"
goapp="${appdir}/platform/google_appengine/goapp"
if ! [ -f "$goapp" ]; then
echo "goapp is not in the Google Cloud SDK libraries." >&2
echo "Hint: try running this command:" >&2
echo "" >&2
echo " gcloud components install app-engine-go" >&2
fi
python "$goapp" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment