Skip to content

Commit 7d6d8cd

Browse files
committed
Move the admin panel to the repository root
The host publishes this repository into the document root. The panel sat at public_html/admin.niteshacars.in/admin/, so it was published to docroot/public_html/admin.niteshacars.in/admin/ -- a path nothing serves. That is why niteshacars.in/admin returned the site's own 404 no matter which pipeline was used to put it there; the pipelines were never the problem. At the repository root it publishes to docroot/admin/, which is the URL. Every reference moves with it: the gitignore entry for config.php, the content-defaults pairing that fetch-content.mjs checks, copy-admin-panel.mjs, the two FTP workflows and the README. public_html/ stays -- it still holds the site's vehicle photographs and the old asset-manifest.json, and those are published where they already are. Verified: the build runs from a clean dist and produces dist/admin, the panel's PHP still parses, and the check that the panel's content-defaults match the site's still passes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
1 parent f3d7f31 commit 7d6d8cd

59 files changed

Lines changed: 8 additions & 8 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/deploy-admin.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
username: ${{ secrets.FTP_USERNAME }}
150150
password: ${{ secrets.FTP_PASSWORD }}
151151
protocol: ftps
152-
local-dir: ./public_html/admin.niteshacars.in/admin/
152+
local-dir: ./admin/
153153
server-dir: ${{ steps.panel.outputs.dir }}
154154
dry-run: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run }}
155155

‎.github/workflows/deploy-hostinger.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ jobs:
173173
fi
174174
175175
.github/scripts/write-admin-config.sh \
176-
public_html/admin.niteshacars.in/admin/config.php
176+
admin/config.php
177177
178178
# Proves it parses before it is uploaded. A config.php with a syntax
179179
# error takes the whole panel down and says nothing about why.
180180
if command -v php >/dev/null 2>&1; then
181-
php -l public_html/admin.niteshacars.in/admin/config.php
181+
php -l admin/config.php
182182
else
183183
echo "No php on the runner; skipping the syntax check."
184184
fi
@@ -190,7 +190,7 @@ jobs:
190190
username: ${{ secrets.FTP_USERNAME }}
191191
password: ${{ secrets.FTP_PASSWORD }}
192192
protocol: ftps
193-
local-dir: ./public_html/admin.niteshacars.in/admin/
193+
local-dir: ./admin/
194194
server-dir: ./admin/
195195
dry-run: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run }}
196196

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ yarn-error.log*
2424

2525
# Live admin panel config. Holds real database credentials and must never be
2626
# committed; config.sample.php is the template to copy on a new server.
27-
public_html/admin.niteshacars.in/admin/config.php
27+
admin/config.php

public_html/admin.niteshacars.in/admin/.htaccess renamed to admin/.htaccess

File renamed without changes.

public_html/admin.niteshacars.in/admin/README.md renamed to admin/README.md

public_html/admin.niteshacars.in/admin/SECURITY.md renamed to admin/SECURITY.md

public_html/admin.niteshacars.in/admin/admin.css renamed to admin/admin.css

File renamed without changes.

public_html/admin.niteshacars.in/admin/admin.js renamed to admin/admin.js

File renamed without changes.

public_html/admin.niteshacars.in/admin/api.js renamed to admin/api.js

File renamed without changes.

public_html/admin.niteshacars.in/admin/api/bookings.php renamed to admin/api/bookings.php

File renamed without changes.

0 commit comments

Comments
 (0)