Skip to content

Commit 570425e

Browse files
committed
modify cicd for cgo enabling on build time
1 parent 47d0ddf commit 570425e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/deploy.yml

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
sudo fuser -k 8080/tcp || true
2828
sleep 2
2929
30+
# Create storage directory and set permissions
31+
mkdir -p /home/ec2-user/golang-project/storage
32+
chmod 755 /home/ec2-user/golang-project/storage
33+
3034
# Build the application
3135
CGO_ENABLED=1 go build -o main cmd/api/main.go
3236

config/local.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
env: "dev"
22
storage_path: "storage/storage.db"
33
http_server:
4-
address: "localhost:8080"
4+
address: "0.0.0.0:8080"

0 commit comments

Comments
 (0)