final readme change
This commit is contained in:
@@ -41,6 +41,7 @@ This site is built with [CollectionBuilder-CSV](https://collectionbuilder.github
|
|||||||
**How it works:**
|
**How it works:**
|
||||||
- A cron job runs every minute checking for new commits
|
- A cron job runs every minute checking for new commits
|
||||||
- When changes are detected, it pulls and rebuilds the site
|
- When changes are detected, it pulls and rebuilds the site
|
||||||
|
- Deployment status is logged with commit details and success/fail indicators
|
||||||
- Takes ~10-30 seconds to build and deploy
|
- Takes ~10-30 seconds to build and deploy
|
||||||
|
|
||||||
**Usage:**
|
**Usage:**
|
||||||
@@ -50,7 +51,7 @@ git add .
|
|||||||
git commit -m "Update collection metadata"
|
git commit -m "Update collection metadata"
|
||||||
git push gitea main
|
git push gitea main
|
||||||
|
|
||||||
# Wait ~1 minute, site is live!
|
# Wait ~1 minute, check logs to confirm deployment
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 2. Manual SSH Deploy 🔧
|
#### 2. Manual SSH Deploy 🔧
|
||||||
@@ -109,9 +110,10 @@ exit
|
|||||||
2. Cron runs `auto-pull.sh` every minute
|
2. Cron runs `auto-pull.sh` every minute
|
||||||
3. Script checks: "Is local code different from Gitea?"
|
3. Script checks: "Is local code different from Gitea?"
|
||||||
4. If yes: pulls new code and runs `deploy.sh`
|
4. If yes: pulls new code and runs `deploy.sh`
|
||||||
5. `deploy.sh` runs `bundle exec rake deploy` (builds site)
|
5. `deploy.sh` runs `/usr/local/bin/bundle exec rake deploy` (builds site)
|
||||||
6. Built site is synced to `/var/www/my_webapp/www/` (live directory)
|
6. Built site is synced to `/var/www/my_webapp/www/` (live directory)
|
||||||
7. Site is live!
|
7. Deployment status logged with ✅ or ❌ indicator
|
||||||
|
8. Site is live!
|
||||||
|
|
||||||
**Why this approach?**
|
**Why this approach?**
|
||||||
- No PHP required (keeps site purely static)
|
- No PHP required (keeps site purely static)
|
||||||
|
|||||||
Reference in New Issue
Block a user