Skip to content

Commit

Permalink
illustrate multiple packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kr committed Apr 24, 2013
1 parent 6760595 commit 31bdf43
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
web: go-heroku-example
worker: worker
2 changes: 2 additions & 0 deletions Readme
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
This is a sample hello world Go app to illustrate what you'd get by
following the guide at
http://mmcgrana.github.com/2012/09/getting-started-with-go-on-heroku.html
Additionally, there's another package to illustrate a Go app that
contains more than one command.

You can deploy it to heroku with the following commands:

Expand Down
13 changes: 13 additions & 0 deletions worker/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package main

import (
"fmt"
"time"
)

func main() {
for {
fmt.Println("working...")
time.Sleep(10 * time.Second)
}
}

0 comments on commit 31bdf43

Please sign in to comment.