Provisioning skeleton#59
Merged
Merged
Conversation
jfrohnhofen
previously approved these changes
Mar 29, 2026
| /// Displays version information | ||
| /// Fall back to provisioning if the LEAP configuration file could not be open and parsed. | ||
| #[arg(short = 'f', long = "fallback")] | ||
| provision_fallback: bool, |
Contributor
There was a problem hiding this comment.
is there a scenario where this would not be set? is there a way to run the main server if the config file cannot be parsed?
Member
Author
There was a problem hiding this comment.
Not really in the LEAP node, but I don't want the provisioning process to run on my laptop when I do cargo rr, so that's why I left the fallback only as an option.
jfrohnhofen
approved these changes
Mar 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
leap-provision-sitecrate to host the frontend of the provisioning functionality for LEAP.leap-server.leap-serverattempts to start itself using the given configuration path or using the default path. If the configuration is not present or is invalid, and--fallbackis given, it falls back to a provisioning mode, in which it serves the provisioning frontend and uses a different set of HTTP handlers for the API.leap-serverdirectly to start in provisioning mode by passing the--provisionflag.xtaskreplicates the--provisionflag and passes it to the leap-server binary when given tocargo rr.Closes #58