Skip to content

Commit

Permalink
add script for build and start
Browse files Browse the repository at this point in the history
  • Loading branch information
linehk committed Feb 19, 2024
1 parent e60328b commit 2e072b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions script/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set -e

for service_name in user blog post page comment
do
CGO_ENABLED=0 GOOS=linux go build \
-o ./bin/ \
./service/"$service_name"/rpc/"$service_name".go
done
6 changes: 6 additions & 0 deletions script/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
set -e

for service_name in user blog post page comment
do
./bin/"$service_name" -f ./service/"$service_name"/rpc/etc/"$service_name".yaml &
done

0 comments on commit 2e072b7

Please sign in to comment.