I'm using DO to hack together some web pages to help me verify data for my mobile app. I'm thinking about building out the pages. However, at the moment I'm using a simple shell script to start.
#!/bin/sh
export PORT=8080
go run go/spanishdb.go go/Html.go
Any good blogs on using Go in a production ready server? Should I run behind Apache?
Your best bet is probably to put it behind nginx and use something like supervisord to launch the server itself and restart it if it panics (supervisor will also handle log rotation etc).
Here here for supervisord watching Go behind nginx. I have this set up in production; even using the nginx tcpproxy plugin to reverse proxy some RPC servers.
#!/bin/sh
export PORT=8080 go run go/spanishdb.go go/Html.go
Any good blogs on using Go in a production ready server? Should I run behind Apache?