Start exposing Ghost on localhost and template port

no ref

- The thinking here is this allows users to more easily run multiple Ghost instances on the same server by templating the Ghost port
- Majority wont need this but it also simplifies the message around having to forward traffic if you don't start Caddy
This commit is contained in:
James Loh
2025-07-09 14:35:39 +10:00
parent 7bb2eec30b
commit 7f332ff9ac
3 changed files with 10 additions and 3 deletions

View File

@@ -509,9 +509,11 @@ main() {
echo "✓ Caddy Webserver is running!"
echo "✓ Your site is available at: https://${domain}"
else
local ghost_port
ghost_port=$(grep 'GHOST_PORT' "${PWD}/.env" | cut -d '=' -f 2)
echo ""
echo "✓ Ghost is running on port 2368"
echo " Configure your reverse proxy to forward traffic to it"
echo "✓ Ghost is now running"
echo " To finish migration, configure your webserver to forward traffic to 127.0.0.1:${ghost_port}"
fi
# Success! Remove recovery script