Skip to content
Unofficial Google App Engine Dispatcher Emulator
Branch: master
Clone or download
Latest commit 15c6d9a Jul 8, 2019

README.md

gae-dispatcher-emulator

Build Status codecov GoDoc

Unofficial Google App Engine Dispatcher Emulator

Description

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.

Installation

go get -u github.com/karupanerura/gae-dispatcher-emulator/...

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.3.0/gae-dispatcher-emulator_darwin_amd64
chmod +x ~/bin/gae-dispatcher-emulator

Usage

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
You can’t perform that action at this time.