Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dusan Malusev committed Mar 12, 2022
1 parent bd007f1 commit be6ed46
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions backend/.air.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -27,4 +27,4 @@ build = "yellow"
runner = "green"

[misc]
clean_on_exit = true
clean_on_exit = true
6 changes: 3 additions & 3 deletions backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ 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 (
environment string
)

func main() {
flag.StringVar(&environment, "env", "development", "Server Configuration")
flag.StringVar(&environment, "env", "production", "Server Configuration")
flag.Parse()

env := config.ParseEnvironment(environment)
Expand Down

0 comments on commit be6ed46

Please sign in to comment.