diff --git a/CLAUDE.md b/CLAUDE.md index 23fdafb..e11294f 100644 --- a/CLAUDE.md +++ b/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 ``` diff --git a/README.md b/README.md index 6da19ca..651d142 100644 --- a/README.md +++ b/README.md @@ -374,14 +374,6 @@ whm/ ## Production Server -gniza is deployed on the following server: - -| Server | Host | SSH Port | -|--------|------|----------| -| Production (cPanel) | `192.168.100.13` | `2223` | - -Hostname: `181-79-81-251.cprapid.com` - ## Running Tests ```bash