-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Webapp usage #197
Comments
No, the links provided by the queue or search commands (i.e. the paths configured in httpHandlers.xml) are legacy botify 1 http handlers. These run on the port specified by the
So when running everything with default settings locally using a properly built jar file or the gradle bootRun task the new webapp should be reachable on |
Thanks for the information! It made things a bit more clear. I checked again and I see no mentions of WelcomePageHandlerMapping on my logs. I played a bit more on the 8080 port and I see the REST endpoints respond, but it's not serving the static files (src/main/webapp/index.html & the stuff in src/main/webapp/pkg/, right?). From my understanding these end up in I now did a quick test with the following, making a public/ folder inside webapp and putting the static resources there, before building the jar:
And it appears to be working fine 😄 Authentication works fine as well. |
No, index.html ends up in |
Hmm, running that command replies |
Botify uses spring boot, not plain spring. Spring boot provides auto configuration for those things and usage of the @EnableWebMvn annotation would disable the auto config in favour of traditional spring config. From the spring boot documentation:
If that was the problem authentication would not have worked as the RestController |
Just tried again, just in case, but it isn't. I'm attaching a log, maybe you can spot something I'm missing. This is with
The only thing that looks a bit strange to me is this bit, the "/" doesn't have
|
Have you tried setting a breakpoint in |
Did you get the chance to try it out? |
I haven't had the chance yet, I need to set up a new java environment to do that. During my tests so far I have been using the bot I built and ran with docker and kubernetes. I'll see if I can do it this next week, or I can push a branch with the Dockerfile and such that I used if you want to take a look. |
Oh you're using Docker? That is indeed something I haven't tested but since I plan and distributing botify 2 as a Docker image it is something I'll look into either way. However, as long as the jar contains the file I still don't see that as a reason why it won't work. Would still be good to know your results when running the application outside of Docker when you get the chance. I'm probably gonna try setting up a Docker environment soon but I've got exams coming up. |
Hi! This is more of a question than an issue. I've been running the development (v2) version and so far it has been working nicely 😄 I do wonder though, how does one use the webapp that is built with rust? I see sometimes the bot gives links (e.g. on queue command), is that it? I also see that the bot listens on two http ports, one always 404's and the other one has those pages. Should I be doing something else to use the webapp?
Thanks for the great bot!
The text was updated successfully, but these errors were encountered: