Update lattice makefile to reflect new structure

This commit is contained in:
Alan Bernstein 2021-05-19 20:39:41 -05:00
parent 4aaf3e2fc2
commit e4a8293c0e

View file

@ -1,13 +1,13 @@
.PHONY: proto run-pilosa run-app
proto: pilosa
docker run --rm -v $(PWD)/pilosa:/pilosa -w /pilosa/proto/ jfbrandhorst/grpc-web-generators protoc -I/usr/include -I. --plugin=protoc-gen-ts=/usr/local/bin/protoc-gen-ts --js_out=import_style=commonjs,binary:. --ts_out=service=grpc-web:. pilosa.proto
(echo "/* eslint-disable */"; cat pilosa/proto/pilosa_pb.js; echo "/* eslint-enable */") > src/proto/pilosa_pb.js
(echo "/* eslint-disable */"; cat pilosa/proto/pilosa_pb_service.js; echo "/* eslint-enable */") > src/proto/pilosa_pb_service.js
cp pilosa/proto/pilosa_pb.d.ts pilosa/proto/pilosa_pb_service.d.ts src/proto
docker run --rm -v $(PWD)/..:/pilosa -w /pilosa/proto/ jfbrandhorst/grpc-web-generators protoc -I/usr/include -I. --plugin=protoc-gen-ts=/usr/local/bin/protoc-gen-ts --js_out=import_style=commonjs,binary:. --ts_out=service=grpc-web:. pilosa.proto
(echo "/* eslint-disable */"; cat ../proto/pilosa_pb.js; echo "/* eslint-enable */") > src/proto/pilosa_pb.js
(echo "/* eslint-disable */"; cat ../proto/pilosa_pb_service.js; echo "/* eslint-enable */") > src/proto/pilosa_pb_service.js
cp ../proto/pilosa_pb.d.ts ../proto/pilosa_pb_service.d.ts src/proto
pilosa:
git clone git@github.com:molecula/pilosa.git
cd .. && git checkout master && git pull
run-pilosa:
pilosa server --handler.allowed-origins http://localhost:3000