Skip to content
Permalink
Browse files

stop running on heroku.

  • Loading branch information...
fiatjaf committed Oct 21, 2018
1 parent f7a3cfc commit 323a57c9b19393a8a1ed2e67ab245112edb652b2
Showing with 10 additions and 6 deletions.
  1. +0 −1 Procfile
  2. +8 −3 main.go
  3. +1 −1 postgres.sql
  4. +1 −1 templates/index.html

This file was deleted.

Oops, something went wrong.
11 main.go
@@ -17,7 +17,6 @@ import (
"github.com/mrjones/oauth"
"github.com/rs/zerolog"
"gopkg.in/redis.v5"
"gopkg.in/tylerb/graceful.v1"
)

type Settings struct {
@@ -146,6 +145,12 @@ func main() {
})

// start the server
log.Info().Str("port", os.Getenv("PORT")).Msg("listening.")
graceful.Run(":"+os.Getenv("PORT"), 10*time.Second, router)
srv := &http.Server{
Handler: router,
Addr: "0.0.0.0:" + s.Port,
WriteTimeout: 25 * time.Second,
ReadTimeout: 25 * time.Second,
}
log.Info().Str("port", s.Port).Msg("listening.")
srv.ListenAndServe()
}
@@ -20,4 +20,4 @@ CREATE TABLE backups (
);

table boards;
select id from backups;
select id, board from backups order by board;
@@ -25,7 +25,7 @@ <h3>Get started with Permissions for Trello</h3>

<a class="demo" href="public/demo.gif" title="Rare footage of an unallowed user trying to modify a permissioned board.">
<img style="flex-grow: 2" src="public/demo.gif" alt="Permissions for Trello demo screencast">
<p style="margin: 0 5%; width: 20%">To the left, an example of an user trying to modify a card which he is not allowed to.</p>
<p style="margin: 0 5%; width: 20%">To the left, an example of an user trying to modify a card he is not allowed to.</p>
</a>

<p></p>

0 comments on commit 323a57c

Please sign in to comment.
You can’t perform that action at this time.