-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from yunkon-kim/refactor-project
Refactor project structure
- Loading branch information
Showing
26 changed files
with
1,855 additions
and
525 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
default: | ||
cd cmd/cm-beetle && $(MAKE) | ||
cc: | ||
cd cmd/cm-beetle && $(MAKE) | ||
run: | ||
cd cmd/cm-beetle && $(MAKE) run | ||
runwithport: | ||
cd cmd/cm-beetle && $(MAKE) runwithport --port=$(PORT) | ||
clean: | ||
cd cmd/cm-beetle && $(MAKE) clean | ||
prod: | ||
cd cmd/cm-beetle && $(MAKE) prod | ||
swag swagger: | ||
cd pkg/ && $(MAKE) swag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
default: | ||
go build -o cm-beetle | ||
cc: | ||
GOOS=linux GOARCH=arm go build -o cm-beetle-arm | ||
run: | ||
./cm-beetle | ||
runwithport: | ||
./cm-beetle --port=$(PORT) | ||
clean: | ||
rm -v cm-beetle | ||
prod: | ||
@echo "Build for production" | ||
# Note - Using cgo write normal Go code that imports a pseudo-package "C". I may not need on cross-compiling. | ||
# Note - You can find possible platforms by 'go tool dist list' for GOOS and GOARCH | ||
# Note - Using the -ldflags parameter can help set variable values at compile time. | ||
# Note - Using the -s and -w linker flags can strip the debugging information. | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-s -w' -o cm-beetle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# CM-Beetle Docs | ||
|
||
Documentation site for CM-Beetle, computing infrastructure migrator. |
Oops, something went wrong.