Skip to content

Commit 7fcac57

Browse files
underaclaude
andauthored
Remove PHP: /repo/ now served by nginx directly (#809)
* Remove PHP: /repo/ now served by nginx directly - Delete index.php, cfg.php, composer.json, JPGC/PluginsRepository.php, out.xml - Remove PHP/composer setup from CI workflow - Strip PHP copy and composer install from prepare-upload.sh - /repo/ GET serves static repo.json via nginx - /repo/ POST stats logged by nginx access_log Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Remove unused dat/dl/ wiki files Downloads section now redirects to /install/Install/ via nginx. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Remove unused counter.tpl, analytics now in MkDocs theme Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Remove dead PWE template and dat/html (duplicated in theme) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7ef1d05 commit 7fcac57

File tree

14 files changed

+1
-1164
lines changed

14 files changed

+1
-1164
lines changed

.github/workflows/pr.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,6 @@ jobs:
6060
with:
6161
python-version: '3.12'
6262

63-
- name: Setup PHP Action
64-
uses: shivammathur/setup-php@2.24.0
65-
with:
66-
php-version: '5.6'
67-
tools: composer
68-
6963
- name: Install Python dependencies
7064
run: pip install packaging jsonschema requests mkdocs
7165

prepare-upload.sh

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,11 @@ cp -r examples upload/img/
1919
# Merge repo JSON files into single file
2020
python merge_repo.py
2121

22-
# PWE data files for /repo/ endpoint
22+
# Repo JSON and download packages
2323
mkdir -p upload/dat
24-
cp site/dat/out.xml upload/dat/
2524
cp -r site/dat/repo upload/dat/
2625
cp -r site/files upload/ 2>/dev/null || true
2726

28-
# PHP for /repo/ endpoint (stays dynamic)
29-
cp site/index.php upload/
30-
cp site/cfg.php upload/
31-
cp site/composer.json upload/
32-
cp -r site/JPGC upload/
33-
34-
php --version
35-
curl -sS https://getcomposer.org/installer | php
36-
cd upload
37-
../composer.phar update --no-dev --prefer-stable
38-
cd ..
39-
4027
cd upload
4128
zip -r site.zip *
4229
cd ..

site/JPGC/PluginsRepository.php

Lines changed: 0 additions & 54 deletions
This file was deleted.

site/cfg.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

site/composer.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

site/dat/counter.tpl

Lines changed: 0 additions & 11 deletions
This file was deleted.

site/dat/dl/all.wiki

Lines changed: 0 additions & 13 deletions
This file was deleted.

site/dat/dl/old.wiki

Lines changed: 0 additions & 142 deletions
This file was deleted.

site/dat/dl/snapshots.wiki

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)