Set your GOPATH (to something like /home/user), and make sure it's a directory that exists. (Note: set this on your machine's environment, not in the go.bat file.)
Further commands use goapp which lives in the go_appengine directory from the SDK. Make sure it's in your PATH.
Download goread and dependencies by running: goapp get -d github.com/mjibson/goread. You may get messages about unrecognized imports. Ignore them.
cd $GOPATH/src/github.com/mjibson/goread/app.
Copy app.sample.yaml to app.yaml.
In the goread directory (cd .. from the command above), copy settings.go.dist to settings.go.
From the app directory, start the app with goapp serve. (On Windows, you may need to do this instead: python C:\go_appengine\dev_appserver.py app.yaml.)
请发表评论