Skip to content

Commit

Permalink
Heroku config
Browse files Browse the repository at this point in the history
  • Loading branch information
thoeni committed Oct 1, 2016
1 parent d9a7106 commit 2d4e4ba
Show file tree
Hide file tree
Showing 41 changed files with 4,720 additions and 3 deletions.
33 changes: 33 additions & 0 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Godeps/Readme

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: ./slack-tube-service
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Travis CI: [![Build Status](https://travis-ci.org/thoeni/slack-tube-service.svg?branch=master)](https://travis-ci.org/thoeni/slack-tube-service) Circle CI: [![CircleCI](https://circleci.com/gh/thoeni/slack-tube-service.svg?style=svg)](https://circleci.com/gh/thoeni/slack-tube-service) Coveralls: [![Coverage Status](https://coveralls.io/repos/github/thoeni/slack-tube-service/badge.svg?branch=master)](https://coveralls.io/github/thoeni/slack-tube-service?branch=master)
Build: [![CircleCI](https://circleci.com/gh/thoeni/slack-tube-service.svg?style=svg)](https://circleci.com/gh/thoeni/slack-tube-service) Test coverage: [![Coverage Status](https://coveralls.io/repos/github/thoeni/slack-tube-service/badge.svg?branch=master)](https://coveralls.io/github/thoeni/slack-tube-service?branch=master)

# Build & Run

Expand Down
Binary file modified bin/slack-tube-service-darwin
Binary file not shown.
Binary file modified bin/slack-tube-service-linux-amd64
Binary file not shown.
Binary file modified bin/slack-tube-service.exe
Binary file not shown.
3 changes: 2 additions & 1 deletion deploy_prod.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
ssh ec2-user@thoeni.io 'pkill -f slack-tube-service'
./mkbin.sh
scp bin/slack-tube-service-linux-amd64 ec2-user@thoeni.io:~/
ssh ec2-user@thoeni.io screen -d -m './slack-tube-service-linux-amd64 &'
ssh ec2-user@thoeni.io screen -d -m './slack-tube-service-linux-amd64 &'
10 changes: 9 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,21 @@ import (
"time"

"github.com/rs/cors"
"os"
)

var lastStatusCheck time.Time

const listenPort string = "1123"
var listenPort = os.Getenv("PORT")

const defaultPort = "1123"

func init() {

if listenPort == "" {
listenPort = defaultPort
}

var err error
lastStatusCheck, err = time.Parse(time.RFC3339, "1970-01-01T00:00:00+00:00")
if err != nil {
Expand Down
21 changes: 21 additions & 0 deletions vendor/github.com/gorilla/mux/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions vendor/github.com/gorilla/mux/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2d4e4ba

Please sign in to comment.