diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0fb5c4f --- /dev/null +++ b/.gitignore @@ -0,0 +1,33 @@ +# ---> Go +# If you prefer the allow list template instead of the deny list, see community template: +# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore +# +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +vendor/ +gen/ +.cache/ +logs/ +.idea/ +.vscode/ +.builds/ + +result/ +results/ + +# Go workspace file +go.work + +output/ \ No newline at end of file diff --git a/builds/stock b/builds/stock new file mode 100644 index 0000000..9c7fb5e Binary files /dev/null and b/builds/stock differ diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100644 index 0000000..541dacc --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +GOARCH=amd64 GOOS=linux go build -o ./builds/stock ./cmd/main/main.go + +nohup ./stock > /data/app/logs/stock.log 2>&1 & \ No newline at end of file