Browse Source

Skaffold dev profile fix

master
Birunda 2 years ago
parent
commit
15a76d6c2b
  1. 1
      .dockerignore
  2. 2
      Dockerfile.dev
  3. 3
      main.go

1
.dockerignore

@ -1,2 +1,3 @@
skaffold.yml
skaffold.example.yml
.env

2
Dockerfile.dev

@ -14,4 +14,4 @@ WORKDIR /app
RUN apt install -y entr
ENTRYPOINT find . | entr -n -c -r go run .
ENTRYPOINT find . -path ./data -prune -o -print | entr -n -c -r go run .

3
main.go

@ -164,6 +164,7 @@ func failOnError(err error, msg string) {
func start() {
logger.Infof("Starting...")
messageQueue.StartMessageQueue()
messageQueue.WithChannel(func(channel *amqp.Channel) {
channel.ExchangeDeclare("task.event", "topic", true, false, false, false, nil)
@ -196,7 +197,7 @@ func stop() {
func main() {
err := godotenv.Load()
if err != nil {
fmt.Println(err)
fmt.Println("no .env file")
}
logger.SetLoggerName(os.Getenv("WORKER_NAME"))

Loading…
Cancel
Save