Skip to content

Commit

Permalink
Use appengine practices, should work on both standard and flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
oralordos committed Jul 14, 2017
1 parent b8a2f5a commit 6d60104
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
package main

import (
"net/http"
"os"

"google.golang.org/appengine"

"github.com/goadesign/goa"
"github.com/goadesign/goa/logging/log15"
"github.com/goadesign/goa/middleware"
Expand Down Expand Up @@ -35,9 +38,8 @@ func main() {
app.MountAeController(service, h)

// Start service, listen on port 8080
if err := service.ListenAndServe(":8080"); err != nil {
service.LogError(err.Error())
}
http.Handle("/", service.Mux)
appengine.Main()

logger.Info("Exiting...")
}

0 comments on commit 6d60104

Please sign in to comment.