-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Spin up explorer with forc command #608
Comments
Does this require https://github.com/FuelLabs/block-explorer-v2? If so, might be worth making that repo public. Is it cleaned up? One questions I would have wrt implementation, is how will the block explorer files be distributed? |
@adlerjohn from my knowledge, it would just be a static compressed build that can be quickly hosted with a simple HTTP server. But the CI might eventually want to build the current explorer from scratch, so I'd say open-sourcing it is the way to go. |
That makes sense. My questions was more about versioning and such. Are we going to add a tarball of the block explorer to the Sway repo and distribute it with Forc? How to handle version upgrades? Etc. Seems easier to just fetch it from the git repo, but still need to consider versioning, as their may be incompatibilities and so on. @alex-matthe can you propose how you'd deal with the above to make sure there's a reasonable solution? |
I already started to work on this. I was thinking the same as Nick, start with a simpler implementation and have a local server which serves the static files (manually added in the forc repo).
And yes, the explorer repo needs to be public. What do you think? |
Just made the repo public to avoid headaches.
I'm against that, because it would add a binary artifact that must be kept around forever (or involve ugly mangling of the Sway repo, which should really be avoided). I know it might take a tiny bit longer, but if you want just a tarball of the block explorer source, tag a release, then download the resultant source tarball from GitHub. |
Add
forc explorer
command to start a server that serves the static files used for the Explorer web appOptional flags
--port
: override the default port numberThe text was updated successfully, but these errors were encountered: