updateweb
This commit is contained in:
18
WORKFLOW.md
18
WORKFLOW.md
@@ -20,19 +20,22 @@
|
||||
|
||||
## ✅ How to Edit Website Files
|
||||
|
||||
### 1. Edit files in the git repository:
|
||||
### 1. Edit files in the git repository
|
||||
|
||||
```bash
|
||||
cd /media/pts/Website/SkyArtShop/website/
|
||||
```
|
||||
|
||||
Open any file:
|
||||
|
||||
- `website/public/shop.html`
|
||||
- `website/public/home.html`
|
||||
- `website/admin/dashboard.html`
|
||||
- `website/assets/css/main.css`
|
||||
- etc.
|
||||
|
||||
### 2. Deploy your changes:
|
||||
### 2. Deploy your changes
|
||||
|
||||
```bash
|
||||
cd /media/pts/Website/SkyArtShop
|
||||
./deploy-website.sh
|
||||
@@ -40,7 +43,8 @@ cd /media/pts/Website/SkyArtShop
|
||||
|
||||
This will copy your files to `/var/www/skyartshop/` and make them live!
|
||||
|
||||
### 3. Commit your changes to git:
|
||||
### 3. Commit your changes to git
|
||||
|
||||
```bash
|
||||
./local-commit.sh
|
||||
# Or manually:
|
||||
@@ -70,11 +74,13 @@ code website/public/shop.html
|
||||
## 📝 Important Rules
|
||||
|
||||
✅ **DO:**
|
||||
|
||||
- Edit files in `/media/pts/Website/SkyArtShop/website/`
|
||||
- Run `./deploy-website.sh` after making changes
|
||||
- Commit your work regularly with `./local-commit.sh`
|
||||
|
||||
❌ **DON'T:**
|
||||
|
||||
- Edit files directly in `/var/www/skyartshop/` (they'll be overwritten on next deploy)
|
||||
- Forget to deploy after editing
|
||||
- Forget to commit your changes
|
||||
@@ -82,11 +88,13 @@ code website/public/shop.html
|
||||
## 🔄 Deployment Script Details
|
||||
|
||||
**What it does:**
|
||||
|
||||
1. Copies files from `website/` → `/var/www/skyartshop/`
|
||||
2. Sets proper permissions
|
||||
3. Keeps your changes safe in git
|
||||
|
||||
**When to run it:**
|
||||
|
||||
- After editing any HTML, CSS, or JS files
|
||||
- When you want to see your changes live
|
||||
- Before committing (to ensure everything works)
|
||||
@@ -113,8 +121,8 @@ If VS Code shows "Unable to save" or asks to overwrite:
|
||||
- **Git Repository**: `/media/pts/Website/SkyArtShop/` (branch: pts/updateweb)
|
||||
- **Live Website**: `/var/www/skyartshop/`
|
||||
- **Backend Server**: Running on port 5000 (managed by PM2)
|
||||
- **Website URL**: https://skyarts.ddns.net
|
||||
- **Admin URL**: https://skyarts.ddns.net/admin
|
||||
- **Website URL**: <https://skyarts.ddns.net>
|
||||
- **Admin URL**: <https://skyarts.ddns.net/admin>
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user