Browse Source

KeepAlive true in Makefile and Dockerfile

Vova Tkach 5 years ago
parent
commit
d98067e899
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Dockerfile
  2. 1 1
      Makefile

+ 1 - 1
Dockerfile

@@ -1,6 +1,6 @@
 FROM debian:latest
 
-ENV FAVE_HOST=0.0.0.0 FAVE_PORT=8080 FAVE_DIR=/app/hosts FAVE_DEBUG=false FAVE_KEEPALIVE=false
+ENV FAVE_HOST=0.0.0.0 FAVE_PORT=8080 FAVE_DIR=/app/hosts FAVE_DEBUG=false FAVE_KEEPALIVE=true
 
 ADD https://github.com/vladimirok5959/golang-fave/releases/download/v1.0.6/fave.linux-amd64.tar.gz /app/fave.linux-amd64.tar.gz
 ADD https://github.com/vladimirok5959/golang-fave/releases/download/v1.0.6/localhost.tar.gz /app/hosts/localhost.tar.gz

+ 1 - 1
Makefile

@@ -12,7 +12,7 @@ test:
 	go test ./...
 
 run:
-	@./fave -host 0.0.0.0 -port 8080 -dir ./hosts -debug true -keepalive false
+	@./fave -host 0.0.0.0 -port 8080 -dir ./hosts -debug true -keepalive true
 
 build: clean
 	@-mkdir ./bin