Fix: Docker unify all the builds (air and production) within tmp/
This commit is contained in:
parent
0be66aab74
commit
a52a8393a1
@ -1,8 +1,8 @@
|
|||||||
root = "."
|
root = "."
|
||||||
tmp_dir = "tmp_bot"
|
tmp_dir = "tmp"
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
cmd = "go build -o ./tmp_bot/main ./cmd/bot/main.go"
|
cmd = "go build -o ./tmp/main_bot ./cmd/bot/main.go"
|
||||||
bin = "./tmp_bot/main"
|
bin = "./tmp/main_bot"
|
||||||
delay = 1000
|
delay = 1000
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
root = "."
|
root = "."
|
||||||
tmp_dir = "tmp_web"
|
tmp_dir = "tmp"
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
cmd = "go build -o ./tmp_web/main ./cmd/web/main.go"
|
cmd = "go build -o ./tmp/main_web ./cmd/web/main.go"
|
||||||
bin = "./tmp_web/main"
|
bin = "./tmp/main_web"
|
||||||
delay = 1000
|
delay = 1000
|
||||||
|
|
||||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,3 @@
|
|||||||
data
|
data
|
||||||
.env
|
.env
|
||||||
tmp_bot
|
tmp
|
||||||
tmp_web
|
|
||||||
|
@ -24,5 +24,5 @@ CMD if [ "$DOCKER_ENV" = "local" ]; then \
|
|||||||
air -c .air.bot.toml; \
|
air -c .air.bot.toml; \
|
||||||
else \
|
else \
|
||||||
echo "Production environment detected, building and running bot..."; \
|
echo "Production environment detected, building and running bot..."; \
|
||||||
go build -o bot ./cmd/bot/main.go && ./bot; \
|
go build -o tmp/bot ./cmd/bot/main.go && ./tmp/bot; \
|
||||||
fi
|
fi
|
||||||
|
@ -24,5 +24,5 @@ CMD if [ "$DOCKER_ENV" = "local" ]; then \
|
|||||||
air -c .air.web.toml; \
|
air -c .air.web.toml; \
|
||||||
else \
|
else \
|
||||||
echo "Production environment detected, building and running web..."; \
|
echo "Production environment detected, building and running web..."; \
|
||||||
go build -o web ./cmd/web/main.go && ./web; \
|
go build -o tmp/web ./cmd/web/main.go && ./tmp/web; \
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user