DevDocs Enhancement: Configurable Storage Path Implementation #33
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.
DevDocs Enhancement: Configurable Storage Path Implementation
Overview
This PR improves the DevDocs application by implementing a flexible storage configuration feature that allows users to separate curated data from the source code. These changes enhance the application's flexibility and usability by making the storage location fully configurable through a single environment variable, working consistently across both local development and Docker deployments.
Changes Made
Technical Implementation
Testing Done
Usage Example
Users can now set the STORAGE_PATH environment variable in their .env file:
For storage inside the project (default)
STORAGE_PATH=storage/markdown
For storage outside the project
STORAGE_PATH=/path/to/your/storage
The application will respect this path in both local and Docker deployments, allowing users to store curated data wherever is most convenient for their workflow.
Additional Notes