Skip to content

Instantly share code, notes, and snippets.

@jafstar
Last active February 4, 2018 16:08
Show Gist options
  • Save jafstar/2993411 to your computer and use it in GitHub Desktop.
Save jafstar/2993411 to your computer and use it in GitHub Desktop.
Hello Go
//LINKS
https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Go
https://developers.google.com/appengine/docs/go/gettingstarted/helloworld
https://developers.google.com/appengine/docs/go/gettingstarted/uploading
//ENV VARIABLES
export GOROOT=$HOME/opt/go
export GOPATH=$HOME/Desktop/GO
SET GOPATH=%USERPROFILE%/Desktop/GO
//UPLOAD
python appcfg.py update $GOPATH/src/app
python sdk/platform/google_appengine/appcfg.py update $GO_HOME/src/appname
//LOCAL TEST
dev_appserver.py $GOPATH/src/app
python sdk/bin/appcfg.py update $GO_HOME/src/appname
WARNING The rdbms API is not available because the MySQLdb library could not be loaded.
INFO Checking for updates to the SDK.
INFO The SDK is up to date.
WARNING The datastore file stub is deprecated, and will stop being the default in a future release.
Append the --use_sqlite flag to use the new SQLite stub.
You can port your existing data using the --port_sqlite_data flag or
purge your previous test data with --clear_datastore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment