Skip to content

Commit 7991fe5

Browse files
authored
Merge pull request #20 from cruxstack/dev
feat: improve code quality
2 parents 051d935 + ebc4964 commit 7991fe5

File tree

18 files changed

+489
-474
lines changed

18 files changed

+489
-474
lines changed

.env.example

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# debug
22
APP_DEBUG_ENABLED=false
33

4-
# githup app (required)
4+
# github app (required)
55
APP_GITHUB_APP_ID=123456
66
APP_GITHUB_APP_PRIVATE_KEY_PATH=./.local/private-key.pem
77
APP_GITHUB_INSTALLATION_ID=987654
88
APP_GITHUB_ORG=cruxstack
99
APP_GITHUB_WEBHOOK_SECRET=your-webhook-secret-here
1010

11-
# githu pr compliance (optional)
11+
# github pr compliance (optional)
1212
APP_PR_COMPLIANCE_ENABLED=true
1313
APP_PR_MONITORED_BRANCHES=main,master
1414

@@ -33,3 +33,6 @@ APP_SLACK_CHANNEL=C01234ABCDE
3333

3434
# api gateway base path (optional, for lambda deployments with stage prefix)
3535
# APP_BASE_PATH=v1
36+
37+
# server port (optional, for cmd/server only, default: 8080)
38+
# APP_PORT=8080

cmd/server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func main() {
3939
mux := http.NewServeMux()
4040
mux.HandleFunc("/", httpHandler)
4141

42-
port := os.Getenv("PORT")
42+
port := os.Getenv("APP_PORT")
4343
if port == "" {
4444
port = "8080"
4545
}

0 commit comments

Comments
 (0)