File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package main
33import (
44 "encoding/base64"
55 "fmt"
6- "os"
76
87 "github.com/akerl/go-lambda/s3"
98)
@@ -22,10 +21,14 @@ type configFile struct {
2221
2322func loadConfig () (* configFile , error ) {
2423 c := configFile {}
25- err := s3 .GetConfigFromEnv (& c )
24+ cf , err := s3 .GetConfigFromEnv (& c )
2625 if err != nil {
2726 return & c , err
2827 }
28+ cf .OnError = func (_ * s3.ConfigFile , err error ) {
29+ fmt .Println (err )
30+ }
31+ cf .Autoreload (60 )
2932
3033 if c .Lifetime == 0 {
3134 c .Lifetime = 86400
Original file line number Diff line number Diff line change @@ -607,7 +607,7 @@ func init() {
607607 fi : FileInfo {
608608 name : "favicon.ico" ,
609609 size : 5558 ,
610- modTime : time .Unix (0 , 1523728129481329569 ),
610+ modTime : time .Unix (0 , 1527090282022963545 ),
611611 isDir : false ,
612612 },
613613 }, "/index.html.hbs" : File {
@@ -753,7 +753,7 @@ func init() {
753753 fi : FileInfo {
754754 name : "index.html.hbs" ,
755755 size : 1637 ,
756- modTime : time .Unix (0 , 1525571524681850728 ),
756+ modTime : time .Unix (0 , 1527090282023306924 ),
757757 isDir : false ,
758758 },
759759 },
You can’t perform that action at this time.
0 commit comments