planetarium / libplanet

Blockchain in C#/.NET for on-chain, decentralized gaming
https://docs.libplanet.io/
GNU Lesser General Public License v2.1
506 stars 142 forks source link

Explorer: /graphiql.html endpoint does not exist on release version #1245

Closed qria closed 1 year ago

qria commented 5 years ago

Running server with release version ran with ./Libplanet.Explorer.Executable, /graphiql.html endpoint raises 404 not found.

qria commented 5 years ago

Turns out the reason why graphiql.html did not exist was that because graphiql.html is served as a static file, it was being served from hostingEnvironment.WebRootPath, which is determined when running the actual executable as that directory.

So either we somehow bundle the static files when building an executable, or we set the webRootPath as the folder that executable runs and bundle the static files there.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.