- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Support command line options, especially for choosing a different wiki directory? #177
Comments
@johann-petrak, you can use environment variables to specify the wiki directory like this:
Currently, setting the config file via environment variables isn't supported. If that's a feature you'd like, feel free to create a PR to add it! You can check out the relevant code here: Lines 75 to 76 in 6d2c745
If you have any questions or run into issues, don't hesitate to reach out! |
Is there some documentation what else can be set via environment variables? personally I prefer the option to have command line options as this is a standard way to have a self-documenting software as all the options would then be easily detectable via the standard command Another important setting would be the port to run on, as it would allow to run several instances/wikis in parallel on the same computer. |
Here https://linbreux.github.io/wikmd/environment%20variables.html, you could also set the port here 😄
For sure! That would indeed be a nice feature. Maybe the priority needs to be as followed:
|
I think it would be convenient to be able to start the wiki using something like
wikmd --dir /my/wikidir --conf myconfigfile.cfg
The text was updated successfully, but these errors were encountered: