Compare commits

...

2 Commits

2 changed files with 3 additions and 3 deletions

View File

@@ -10,8 +10,8 @@ WORKDIR /app
COPY go.mod go.sum ./ COPY go.mod go.sum ./
RUN go mod download RUN go mod download
COPY cmd/ ./ COPY cmd /app/cmd/
COPY internal ./ COPY internal /app/internal/
RUN CGO_ENABLED=0 GOOS=linux go build -o /CatsOfMastodonGo ./cmd/CatsOfMastodonBotGo/main.go RUN CGO_ENABLED=0 GOOS=linux go build -o /CatsOfMastodonGo ./cmd/CatsOfMastodonBotGo/main.go

View File

@@ -22,7 +22,7 @@ var Config *config
func Load() *config { func Load() *config {
err := godotenv.Load() err := godotenv.Load()
if err != nil { if err != nil {
panic("Error loading .env file") slog.Error("Error loading .env file - Using environment variables instead")
} }
// Get mastodon instance // Get mastodon instance