Browse Source

fasthttp: exit from setup.sh after the server binary is built

Aliaksandr Valialkin 9 years ago
parent
commit
b9817fba55

+ 3 - 1
frameworks/Go/fasthttp-mysql/setup.sh

@@ -7,4 +7,6 @@ fw_depends go
 go get -u github.com/go-sql-driver/mysql
 go get -u github.com/valyala/fasthttp
 
-go run src/hello/hello.go &
+rm -f ./hello
+go build src/hello/hello.go
+./hello &

+ 3 - 1
frameworks/Go/fasthttp-mysql/setup_prefork.sh

@@ -7,4 +7,6 @@ fw_depends go
 go get -u github.com/go-sql-driver/mysql
 go get -u github.com/valyala/fasthttp
 
-go run src/hello/hello.go -prefork &
+rm -f ./hello
+go build src/hello/hello.go
+./hello -prefork &

+ 3 - 1
frameworks/Go/fasthttp-postgresql/setup.sh

@@ -7,4 +7,6 @@ fw_depends go
 go get -u github.com/jackc/pgx
 go get -u github.com/valyala/fasthttp
 
-go run src/hello/hello.go &
+rm -f ./hello
+go build src/hello/hello.go
+./hello &

+ 3 - 1
frameworks/Go/fasthttp-postgresql/setup_prefork.sh

@@ -7,4 +7,6 @@ fw_depends go
 go get -u github.com/jackc/pgx
 go get -u github.com/valyala/fasthttp
 
-go run src/hello/hello.go -prefork &
+rm -f ./hello
+go build src/hello/hello.go
+./hello -prefork &