Integrate with Caddy to make it easy to make UI changes

Currently, to preview any front-end changes, the broker needs to be
restarted. This takes a good few seconds and breaks the flow. With this
Caddyfile & some symlinks e.g. `rabbitmq_top/priv/www/js/top.js
rabbitmq_management/priv/www/js`, previewing front-end changes is just a
browser-refresh away. To try this out, install
[caddy](https://caddyserver.com/) locally and just run `caddy` in
rabbitmq_management dir.

cc @michaelklishin @dumbbell for discuss and better alternatives

[#151455442]
This commit is contained in:
Gerhard Lazu 2017-10-17 18:29:23 +01:00
parent 57df3df544
commit 187188d502
1 changed files with 6 additions and 0 deletions

6
deps/rabbitmq_management/Caddyfile vendored Normal file
View File

@ -0,0 +1,6 @@
:2015
tls off
log stdout
errors stderr
root priv/www
proxy /api localhost:15672