Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/693c70a4-9498-8011-87ee-efb5576cc53d
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== When you pulled your new “caddy-wsi” repo, you accidentally stopped using: === <syntaxhighlight>~/projects/caddy/ </syntaxhighlight> But NPM was still pointing to THIS ORIGINAL Caddy instance, not the new one. Then: # Caddy container stopped running or was removed # /projects/caddy remained, but Docker stack was never brought back up # NPM could no longer reach the backend # Cloudflare reports: ``<code> 502 Bad Gateway – Host error <syntaxhighlight> === ## === </syntaxhighlight> cd ~/projects/caddy <syntaxhighlight> ==== </syntaxhighlight> ==== cat docker-compose.yml <syntaxhighlight> It will likely contain: </syntaxhighlight> services: caddy: ... volumes: * ./Caddyfile:/etc/caddy/Caddyfile * ./site:/usr/share/caddy <syntaxhighlight> ==== </syntaxhighlight> ==== docker compose up -d <syntaxhighlight> Follow with: </syntaxhighlight> docker ps | grep caddy <syntaxhighlight> If Caddy starts correctly → website comes back online immediately. === The /projects/caddy/site folder matches the production files shown in your uploaded PDF === WSI WebSite_ https___whitestone…. You previously edited email addresses directly in: </syntaxhighlight> ~/projects/caddy/site/en/index.html ~/projects/caddy/site/zh/index.html <syntaxhighlight> And saw updates instantly on: https://whitestoneintel.com/en/ https://whitestoneintel.com/zh/ This NEVER happened with “caddy-wsi” or “mkdocs” or “wsi-website” repos. → Therefore: THIS is the true WSI production site. === Before pushing CI/CD or migrating anything: === ===== </syntaxhighlight> ===== cd ~/projects/caddy/site git status <syntaxhighlight> This will tell us: * whether the .git folder contains your original production history * whether this folder is safe to integrate with GitHub * whether we need to remove .git to avoid public exposure * how to rebuild your deployment workflow safely === You found the correct production website here: === </syntaxhighlight> ~/projects/caddy/site/ <syntaxhighlight> This explains the entire outage: * The Caddy server in /projects/caddy is NOT running * NPM tries to forward to it → connection refused * Cloudflare shows 502 * Your actual website code is intact === Please paste both: === </syntaxhighlight> cat ~/projects/caddy/docker-compose.yml git status (inside ~/projects/caddy/site) </code>`` Once I see these two outputs: 🟦 I will restore the correct Caddy container 🟦 Fix your website immediately 🟦 Remove the .git exposure risk 🟦 Rebuild a clean CI/CD pipeline for WSI Your website can be back online within minutes.
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)