forked from mickael-kerjean/filestash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (18 loc) · 790 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
docker_dev:
@docker rm -f filestash_dev || true 2> /dev/null
@docker run -ti --net=host -v /home/mickael/Documents/projects/go/src/github.com/mickael-kerjean/filestash:/tmp/go/src/github.com/mickael-kerjean/filestash filestash_dev sh
docker_prd:
docker build --no-cache -t machines/filestash docker/prod/
docker push machines/filestash
build_frontend:
NODE_ENV=production npm run build
build_backend:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ CGO_CFLAGS_ALLOW='-fopenmp' go build -ldflags "-X github.com/mickael-kerjean/filestash/server/common.BUILD_NUMBER=`date -u +%Y%m%d`" -o dist/filestash server/main.go
package:
rm -rf dist/
make build_backend
make build_frontend
cp -R config dist/data/config
mv dist filestash
tar -zcvf filestash.tar.gz filestash
rm -rf filestash