Skip to content

Commit

Permalink
Merge pull request #46 from igh9410/dev
Browse files Browse the repository at this point in the history
Added Makefile and fixed environment variable path in main.go
  • Loading branch information
igh9410 authored Feb 11, 2024
2 parents b668dba + 7c8cdaf commit 5453734
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions backend/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Makefile`

# Run the application
run:
@echo "Running the application..."
# @cd cmd/mvp && go run main.go
@go run cmd/blabber-hive/main.go
2 changes: 1 addition & 1 deletion backend/cmd/blabber-hive/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
)

func main() {
if err := godotenv.Load("../.env"); err != nil { // Running in local, must be run on go run . in ./cmd directory
if err := godotenv.Load(".env"); err != nil { // Running in local, must be run on go run . in ./cmd directory
slog.Info("No .env file found. Using OS environment variables.")
}

Expand Down

0 comments on commit 5453734

Please sign in to comment.