feat: Add comprehensive deployment guide for hosted environments (v1.3.2) #3
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.
📋 Summary
This PR adds comprehensive deployment documentation and configuration for hosting MockAPI-PHP in production environments, establishing subdirectory installation as the standard deployment method.
🎯 Changes
New Files
DEPLOYMENT.md(549 lines) - Comprehensive deployment guide.htaccess.sample(37 lines) - Apache URL rewriting configuration.github/copilot-instructions.md(307 lines) - GitHub Copilot project instructionsUpdated Files
CHANGELOG.md- Added v1.3.2 release notes.gitignore- Exclude user-specific.htaccessfilesREADME.md/README_JP.md- Added deployment guide referencesversion.json- Bumped to v1.3.2📊 Statistics
```
8 files changed, 926 insertions(+), 2 deletions(-)
```
🎨 Key Features
Subdirectory Installation (Standard Method)
Directory Structure:
```
/var/www/html/ # Document root
├── .htaccess # ← Copy .htaccess.sample here
├── index.html # Existing site files
└── MockAPI-PHP/ # ← Git cloned directory
├── index.php
├── .htaccess.sample
└── ...
```
URL Structure:
```
https://example.com/MockAPI-PHP/api/users
↓ ↓ ↓
Directory BASE Endpoint
```
Benefits
🔧 Technical Details
Apache Configuration
Nginx Support
Environment Variables
📚 Documentation Improvements
🧪 Testing
Tested configurations:
🔗 Related Issues
Addresses common deployment questions and provides solutions for hosted environment installations.
📝 Checklist
🚀 Breaking Changes
None. This is a backward-compatible addition of deployment documentation and configuration.
📖 Migration Guide
For existing users:
Ready to merge after review ✨