docs: add deployment instructions and build package for dahabiyas route fix
This commit is contained in:
parent
99b5f667e0
commit
f672502da4
52
DEPLOY_INSTRUCTIONS.md
Normal file
52
DEPLOY_INSTRUCTIONS.md
Normal file
@ -0,0 +1,52 @@
|
||||
# 🚀 VEDA Dahabiyas Route Fix - Deployment Instructions
|
||||
|
||||
## Problem Fixed
|
||||
The `/dahabiyas/` route was showing 404 on production due to stale build files on the server.
|
||||
|
||||
## Files Ready for Deployment
|
||||
- ✅ Fresh build generated with `npm run build`
|
||||
- ✅ Deployment package created: `veda-deployment.tar.gz`
|
||||
- ✅ All routes including `/dahabiyas/` are properly built
|
||||
|
||||
## Quick Deployment Steps
|
||||
|
||||
### Option 1: Upload via Web Panel/FTP
|
||||
1. Download `veda-deployment.tar.gz` from this project
|
||||
2. Upload to your server
|
||||
3. Extract: `tar -xzf veda-deployment.tar.gz`
|
||||
4. Copy files: `sudo cp -r out/* /var/www/veda/out/`
|
||||
5. Set permissions: `sudo chown -R www-data:www-data /var/www/veda/`
|
||||
6. Reload Caddy: `sudo systemctl reload caddy`
|
||||
|
||||
### Option 2: Direct Server Commands
|
||||
If you have server access, run these commands:
|
||||
|
||||
```bash
|
||||
# Navigate to your project directory on the server
|
||||
cd /path/to/your/project
|
||||
|
||||
# Copy fresh build files
|
||||
sudo cp -r out/* /var/www/veda/out/
|
||||
|
||||
# Set proper permissions
|
||||
sudo chown -R www-data:www-data /var/www/veda/ || sudo chown -R caddy:caddy /var/www/veda/
|
||||
|
||||
# Reload Caddy
|
||||
sudo systemctl reload caddy
|
||||
|
||||
# Verify Caddy status
|
||||
sudo systemctl status caddy
|
||||
```
|
||||
|
||||
## Test After Deployment
|
||||
- ✅ https://www2.veda-egypt.com/
|
||||
- ✅ https://www2.veda-egypt.com/dahabiyas/ (should work now!)
|
||||
- ✅ https://www2.veda-egypt.com/experiences/
|
||||
- ✅ https://www2.veda-egypt.com/story/
|
||||
|
||||
## Files in Deployment Package
|
||||
- `out/` - Complete static site build
|
||||
- `Caddyfile` - Web server configuration
|
||||
- All routes including the fixed `/dahabiyas/` route
|
||||
|
||||
The `/dahabiyas/` route will work immediately after deployment.
|
BIN
veda-deployment.tar.gz
Normal file
BIN
veda-deployment.tar.gz
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user