Added a couple of Makefiles to simply build and deploy
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
|
||||
.PHONY: all
|
||||
all: setup build
|
||||
|
||||
.PHONY: setup
|
||||
setup:
|
||||
cp -n .env.dev .env
|
||||
cp -n .env.dev server/.env
|
||||
mkdir -p dist/
|
||||
|
||||
$(MAKE) -C server setup
|
||||
$(MAKE) -C client setup
|
||||
|
||||
# rsync options: [a]rchive [c]hecksum [v]erbose [h]uman
|
||||
.PHONY: build
|
||||
build:
|
||||
$(MAKE) -C server build
|
||||
$(MAKE) -C client build
|
||||
|
||||
rsync -acvh server/bin/posti-dm dist/
|
||||
rsync -acvh client/dist/ dist/
|
||||
|
||||
cp .env dist/.env
|
||||
|
||||
|
||||
Reference in New Issue
Block a user