-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run backoffice locally #1148
Run backoffice locally #1148
Conversation
0de8ba8
to
28fa9d3
Compare
As discussed in #1146, I will look into also running stern automatically in (edit: this doesn't seem to be the right place, see https://github.com/zinfra/backend-issues/issues/1496#issuecomment-650180806) |
the API not gets shown correctly in the browser, but sending requests doesn't work, as they don't get routed to stern yet.
5cf02e7
to
71df527
Compare
proxy_pass http://stern; | ||
} | ||
|
||
# The trailing slash matters, as it makes sure the `/stern` prefix is removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you changed this in deploy/services-demo/conf/nginz/nginx.conf
, are you sure it should stay like this here?
0b248ba
to
7fdb47c
Compare
I now added support for running stern as part of the
Dropping any of those two would make things easier, so tell me if you would strongly prefer that. Also, tell me if there is a nicer way of making nginx still start up when the stern Docker container is not running. I didn't find a nicer way, but there might be some tricks I don't know. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works! \o/
See https://github.com/zinfra/backend-issues/issues/1496.
This took me longer than I thought, but it's mostly working now.
-docker
files where they existAlso, there's still a weird bug I haven't figured out yet:
When I load swagger-ui, everythings works. If I reload the page, it still works. When I switch to the
Back Office
tab and expand the endpoints and then reload the page, it doesn't work anymore. More specifically, instead of loading/backoffice/api-docs/
, the JavaScript tries to load/backoffice
. After a hard refresh it works again.The same happens with
/sso
in theSwagger-2.0
tab, too, so it doesn't seem like a new issue. Might not fix it for now.