Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Generate a Procfile in the new generator closes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Dec 7, 2016
1 parent eb536ad commit 4274ad1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions buffalo/cmd/app_generators.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
func newAppGenerator() *gentronics.Generator {
g := gentronics.New()
g.Add(gentronics.NewFile("main.go", nMain))
g.Add(gentronics.NewFile("Procfile", nProcfile))
g.Add(gentronics.NewFile("Procfile.development", nProcfileDev))
g.Add(gentronics.NewFile(".buffalo.dev.yml", nRefresh))
g.Add(gentronics.NewFile("actions/app.go", nApp))
g.Add(gentronics.NewFile("actions/home.go", nHomeHandler))
Expand Down Expand Up @@ -213,3 +215,6 @@ command_flags: []
enable_colors: true
log_name: buffalo
`

const nProcfile = `web: go run main.go`
const nProcfileDev = `web: buffalo dev`

0 comments on commit 4274ad1

Please sign in to comment.