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
3
3
import (
4
4
"encoding/base64"
5
5
"fmt"
6
- "os"
7
6
8
7
"github.com/akerl/go-lambda/s3"
9
8
)
@@ -22,10 +21,14 @@ type configFile struct {
22
21
23
22
func loadConfig () (* configFile , error ) {
24
23
c := configFile {}
25
- err := s3 .GetConfigFromEnv (& c )
24
+ cf , err := s3 .GetConfigFromEnv (& c )
26
25
if err != nil {
27
26
return & c , err
28
27
}
28
+ cf .OnError = func (_ * s3.ConfigFile , err error ) {
29
+ fmt .Println (err )
30
+ }
31
+ cf .Autoreload (60 )
29
32
30
33
if c .Lifetime == 0 {
31
34
c .Lifetime = 86400
Original file line number Diff line number Diff line change @@ -607,7 +607,7 @@ func init() {
607
607
fi : FileInfo {
608
608
name : "favicon.ico" ,
609
609
size : 5558 ,
610
- modTime : time .Unix (0 , 1523728129481329569 ),
610
+ modTime : time .Unix (0 , 1527090282022963545 ),
611
611
isDir : false ,
612
612
},
613
613
}, "/index.html.hbs" : File {
@@ -753,7 +753,7 @@ func init() {
753
753
fi : FileInfo {
754
754
name : "index.html.hbs" ,
755
755
size : 1637 ,
756
- modTime : time .Unix (0 , 1525571524681850728 ),
756
+ modTime : time .Unix (0 , 1527090282023306924 ),
757
757
isDir : false ,
758
758
},
759
759
},
You can’t perform that action at this time.
0 commit comments