1
0
mirror of https://github.com/umputun/reproxy.git synced 2024-11-24 08:12:31 +02:00
reproxy/examples/file/Makefile
Umputun 8cf4b9063d
Multiple static location (#36)
* add isStatic flag to mapper, implement for file and static providers

* handle static match response as a special case

* move assets conversion to load time

* rename static to assets everywhere for consistency

* don't overwride asset param in url mapper

* add documentation about assets mode

* add tests
2021-04-16 02:49:00 -05:00

18 lines
572 B
Makefile

run: install
echo-http --listen=0.0.0.0:8081 --message=svc1 &
echo-http --listen=0.0.0.0:8082 --message=svc2 &
echo-http --listen=0.0.0.0:8083 --message=svc3 &
../../dist/reproxy --file.enabled --file.name=reproxy.yml --assets.location=./web --assets.root=/static --dbg --logger.stdout
pkill -9 echo-http
run_assets_only: install
../../dist/reproxy --assets.location=./web --assets.root=/
pkill -9 echo-http
kill:
pkill -9 echo-http
install:
cd ../../app && CGO_ENABLED=0 go build -o ../dist/reproxy
cd /tmp && go install github.com/umputun/echo-http@latest