blog: user- and test-friendly local server

Log a short message when the blog starts explaining that it's
listening and what port it's listening on. This is helpful to avoid
errors if you start the blog and refresh the page before the server
has started listening on the port.

Add a basic homepage rendering test that should help protect against
regressions.

Change-Id: Ic86c30652714230b730cd4a254e69c10d019246b
Reviewed-on: https://go-review.googlesource.com/49292
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2 files changed
tree: 0bab1e266b5a6612b8f41d49fa831b7f4a1f126c
  1. blog/
  2. content/
  3. static/
  4. support/
  5. template/
  6. .gitattributes
  7. .gitignore
  8. app.yaml
  9. AUTHORS
  10. codereview.cfg
  11. CONTRIBUTING.md
  12. CONTRIBUTORS
  13. LICENSE
  14. PATENTS
  15. README.md
README.md

Go Blog

This repository holds the Go Blog server code and content.

Download/Install

The easiest way to install is to run go get -u golang.org/x/blog. You can also manually git clone the repository to $GOPATH/src/golang.org/x/blog.

Running Locally

To run the blog server locally:

go build -o blog.exe ./blog
./blog.exe

and then visit http://localhost:8080/ in your browser.

Note that blog.exe caches all content and you must kill it (Ctrl-C on Unix systems) and restart it after editing any files to view changes.

Contributing

Articles on the blog should have broad interest to the Go community, and are mainly written by Go contributors. We encourage you to share your experiences using Go on your own website, and to share them with the Go community. Hugo is a static site server written in Go that makes it easy to write and share your stories.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the blog is located at https://github.com/golang/go/issues. Prefix your issue with “blog:” in the subject line, so it is easy to find.