Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Musiczombie committed Oct 16, 2019
0 parents commit 582b77f
Show file tree
Hide file tree
Showing 882 changed files with 356,406 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .idea/browser_service.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

707 changes: 707 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
SERVER_USER=zipper
SERVER_IP=192.168.1.12
SERVER_PATH=~/upload/temp/

CONFIG_FILE=config.yaml
MYSQL_FILE=mysql.sql
START_FILE=start.sh
STOP_FILE=stop.sh

LINUX=CGO_ENABLED=0 GOOS=linux GOARCH=amd64


## linux platform
BROWSER_LINUX=browser


linux: build/$(BROWSER_LINUX)

build:
@mkdir -p $@

build/$(BROWSER_LINUX):
@$(LINUX) go build -o $@ main.go
@echo "build $@ for linux done"

upload:
scp build/$(BROWSER_LINUX) $(SERVER_USER)@$(SERVER_IP):$(SERVER_PATH)

upload/all:
scp build/$(BROWSER_LINUX) resetDB $(CONFIG_FILE) $(MYSQL_FILE) $(START_FILE) $(STOP_FILE) $(SERVER_USER)@$(SERVER_IP):$(SERVER_PATH)

clean:
@echo "Cleaning binaries "
rm -rf build/$(BROWSER_LINUX)
Loading

0 comments on commit 582b77f

Please sign in to comment.