Unofficial Google App Engine Dispatcher Emulator
gae-dispatcher-emulator
is an unofficial emulator for Google App Engine
dispatcher service.
This works like a local reverse proxy, and it behave by dispatch.yaml
or dispatch.xml
.
Example:
$ (cd default; dev_appserver.py --port=8081 | tee -a dev.log) &
$ (cd mobile-backend; dev_appserver.py --port=8082 | tee -a dev.log) &
$ (cd static-backend; dev_appserver.py --port=8083 | tee -a dev.log) &
$ gae-dispatcher-emulator -c dispatch.yaml -s default:localhost:8081 -s mobile-frontend:localhost:8082 -s static-backend:localhost:8083
I suggest to use it with foreman to launch/shutdown services consistently.
go install github.com/karupanerura/gae-dispatcher-emulator/cmd/gae-dispatcher-emulator@v0.4.0
or you can install it from Github Releases.
Example:
curl -sfL -o ~/bin/gae-dispatcher-emulator https://github.com/karupanerura/gae-dispatcher-emulator/releases/download/v0.4.0/gae-dispatcher-emulator_darwin_amd64
chmod +x ~/bin/gae-dispatcher-emulator
Usage:
gae-dispatcher-emulator [OPTIONS]
Application Options:
-c, --config= dispatch.xml or dispatch.yaml
-s, --service= service map (e.g. --service default:localhost:8081 --service admin:localhost:8082)
-l, --listen= listening host:port (localhost:3000 is default) (default: localhost:3000)
-v, --verbose verbose output for proxy request
Help Options:
-h, --help Show this help message