Skip to content

Commit

Permalink
Merge pull request #5 from Oralordos/master
Browse files Browse the repository at this point in the history
Use appengine practices, should work on both standard and flexible
  • Loading branch information
raphael authored Jul 14, 2017
2 parents b8a2f5a + 6d60104 commit 1334c3f
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 1334c3f

Please sign in to comment.