Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Scott authored and Brian Scott committed May 26, 2017
1 parent 14f6912 commit acb24cb
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
@@ -0,0 +1,7 @@
build/
target/
node_modules/
.git*
.bundler/
*.log
bin/
8 changes: 8 additions & 0 deletions Dockerfile
@@ -0,0 +1,8 @@
FROM gobuffalo/buffalo:latest

RUN mkdir -p $GOPATH/src/github.com/bscott/golangflow
WORKDIR $GOPATH/src/github.com/bscott/golangflow
ADD . .
RUN npm install
RUN buffalo build -o bin/app
CMD ./bin/app
2 changes: 2 additions & 0 deletions actions/auth.go
Expand Up @@ -47,3 +47,5 @@ func AuthCallback(c buffalo.Context) error {
// Do something with the user, maybe register them/sign them in
return c.Render(200, r.JSON(user))
}


2 changes: 2 additions & 0 deletions app.json
Expand Up @@ -10,3 +10,5 @@
"addons": ["heroku-postgresql:hobby-dev"],
"buildpacks": []
}


1 change: 1 addition & 0 deletions main.go
Expand Up @@ -14,6 +14,7 @@ func init() {
setenv.File(".setenv")
}


func main() {
port := envy.Get("PORT", "3000")
log.Printf("Starting golangflow on port %s\n", port)
Expand Down

0 comments on commit acb24cb

Please sign in to comment.