You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi again!
I've reached some problem when deploying my app on a server. Let's figure it out more clearly:
When I tested my app on local machine, despite the different OS, all works fine. My app works clearly on Windows/Linux(WSL), so.. I can easily navigate to https://localhost:8000/swagger-ui.
After deploy to a server, my app exists in a docker container. All routes works fine and I even can get an openapi.json by navigating to https://ip:port/api-docs/openapi.json. All works fine except swagger-ui route
I have no idea where problem source is (something goes wrong with deploy or something deleted after build, maybe..?). If someone has any ideas - please, share it with me!
Thanks in advance!
UPD: I found the problem. When app was builded, deploy mechanism get's only binary file main and don't take, as I understand, utoipa files. So, now I should somehow detect what files I need and which not.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi again!
I've reached some problem when deploying my app on a server. Let's figure it out more clearly:
Windows/Linux(WSL)
, so.. I can easily navigate tohttps://localhost:8000/swagger-ui
.https://ip:port/api-docs/openapi.json
. All works fine exceptswagger-ui
routeI have no idea where problem source is (something goes wrong with deploy or something deleted after build, maybe..?). If someone has any ideas - please, share it with me!
Thanks in advance!
UPD: I found the problem. When app was builded, deploy mechanism get's only binary file
main
and don't take, as I understand, utoipa files. So, now I should somehow detect what files I need and which not.Beta Was this translation helpful? Give feedback.
All reactions