# README
Fallback
How To
-
Run the "remote" application (not managed by Goblin):
cd example-plugins/fallback go run main.go
-
In another terminal, run Goblin server with the example fallback routes:
goblin server -r example-fallback-routes.json
-
In another terminal, run the
fallback
application as a Goblin plugin:cd example-plugins/fallback go build -buildmode=plugin goblin run -p ./fallback.so -d fallback
-
In another terminal, use
curl
with the Goblin subdomain:> curl fallback.goblin:8081 I am running at 10.0.0.1:8081
-
In the terminal from step 3, use Ctrl-C to stop the plugin
-
Use the same
curl
command from step 4 to see how Goblin routes to the service running locally frommain.go
:> curl fallback.goblin:8081 I am running at 0.0.0.0:8081