Remove production server details from docs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
24
CLAUDE.md
24
CLAUDE.md
@@ -474,12 +474,6 @@ Tests cover: `timestamp()` format, `human_size()`, `human_duration()`, `require_
|
||||
|
||||
Tests use a simple `assert_eq`/`assert_ok`/`assert_fail` framework defined in `test_utils.sh`.
|
||||
|
||||
## Production
|
||||
|
||||
| Server | Host | SSH Port | Hostname |
|
||||
|--------|------|----------|----------|
|
||||
| Production (cPanel) | `192.168.100.13` | `2223` | `181-79-81-251.cprapid.com` |
|
||||
|
||||
## Common Tasks
|
||||
|
||||
### Adding a new library function
|
||||
@@ -557,21 +551,9 @@ cd whm/gniza-whm/assets && npm install && npm run build:css
|
||||
2. Rebuild: `cd whm/gniza-whm/assets && npm run build:css`
|
||||
3. Deploy the updated `gniza-whm.css` to the server
|
||||
|
||||
### Deploying changes to production
|
||||
### Deploying changes to a server
|
||||
|
||||
**WHM plugin (CGIs, Perl modules, CSS):**
|
||||
Use the install script for fresh installs or upgrades:
|
||||
```bash
|
||||
# Deploy all WHM files
|
||||
rsync -avz -e 'ssh -p 2223' whm/gniza-whm/ \
|
||||
root@192.168.100.13:/usr/local/cpanel/whostmgr/docroot/cgi/gniza-whm/ \
|
||||
--exclude=assets/node_modules --exclude=assets/src --exclude=assets/package.json --exclude=assets/package-lock.json
|
||||
ssh -p 2223 root@192.168.100.13 'chmod 0755 /usr/local/cpanel/whostmgr/docroot/cgi/gniza-whm/*.cgi'
|
||||
```
|
||||
|
||||
**CLI + libraries:**
|
||||
```bash
|
||||
rsync -avz -e 'ssh -p 2223' bin/ root@192.168.100.13:/usr/local/gniza/bin/
|
||||
rsync -avz -e 'ssh -p 2223' lib/ root@192.168.100.13:/usr/local/gniza/lib/
|
||||
rsync -avz -e 'ssh -p 2223' etc/ root@192.168.100.13:/usr/local/gniza/etc/
|
||||
ssh -p 2223 root@192.168.100.13 'chmod 0755 /usr/local/gniza/bin/gniza && mkdir -p /etc/gniza/schedules.d'
|
||||
curl -sSL http://192.168.100.100:3001/shukivaknin/gniza/raw/branch/main/scripts/install.sh | bash
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user