diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 925ab28..bb23bdb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -92,6 +92,7 @@ jobs: mkdir -p /etc/go-collect rm -rf /tmp/go-collect.zip rm -rf /tmp/go-collect + rm -rf /bin/go-collect unzip -d go-collect /tmp/go-collect.zip docker-compose -f /tmp/go-collect/bin/docker-compose.yml up --force-recreate -d cp /tmp/go-collect/bin/config.yml /etc/go-collect/config.yml diff --git a/backend/.air.toml b/backend/.air.toml index 799200b..953a355 100644 --- a/backend/.air.toml +++ b/backend/.air.toml @@ -4,7 +4,7 @@ tmp_dir = "tmp" [build] cmd = "CC=gcc CXX=g++ make build" bin = "bin/go-collect" -full_bin = "dlv exec --continue --log --listen=0.0.0.0:2345 --allow-non-terminal-interactive --headless=true --api-version=2 --accept-multiclient ./bin/go-collect" +full_bin = "dlv exec --continue --log --listen=0.0.0.0:2345 --allow-non-terminal-interactive --headless=true --api-version=2 --accept-multiclient ./bin/go-collect -env development" include_ext = ["go", "yml"] exclude_dir = ["public", "vendor", "log", "tmp"] exclude_file = ["Dockerfile"] @@ -27,4 +27,4 @@ build = "yellow" runner = "green" [misc] -clean_on_exit = true \ No newline at end of file +clean_on_exit = true diff --git a/backend/main.go b/backend/main.go index 75691be..fd92f1e 100644 --- a/backend/main.go +++ b/backend/main.go @@ -3,12 +3,12 @@ package main import ( "flag" - "github.com/BrosSquad/go-collect/pkg/db/seeds" - "github.com/BrosSquad/go-collect/pkg/http" "github.com/rs/zerolog/log" "github.com/BrosSquad/go-collect/pkg/config" "github.com/BrosSquad/go-collect/pkg/container" + "github.com/BrosSquad/go-collect/pkg/db/seeds" + "github.com/BrosSquad/go-collect/pkg/http" ) var ( @@ -16,7 +16,7 @@ var ( ) func main() { - flag.StringVar(&environment, "env", "development", "Server Configuration") + flag.StringVar(&environment, "env", "production", "Server Configuration") flag.Parse() env := config.ParseEnvironment(environment)