Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

swez_k's avatar

swez_k was awarded Best Answer+1000 XP

1mo ago

My Site Stops Working During Deployments

Apparently Forge needs you to stop the SSR server after deployment so it can start the SSR server again on its own without issues. So it was facing issues because I wasn't stopping the SSR server

swez_k's avatar

swez_k wrote a reply+100 XP

1mo ago

My Site Stops Working During Deployments

Apparently Forge needs you to stop the SSR server after deployment so it can start the SSR server again on its own without issues. So it was facing issues because I wasn't stopping the SSR server

swez_k's avatar

swez_k liked a comment+100 XP

1mo ago

My Site Stops Working During Deployments

@swez_k Did you look at the Forge docs? It has a section on zero-downtime deployments: https://forge.laravel.com/docs/sites/deployments#zero-downtime-deployments

swez_k's avatar

swez_k wrote a reply+100 XP

1mo ago

My Site Stops Working During Deployments

I know, this is why I posted it on "Forge" channel :)

swez_k's avatar

swez_k wrote a reply+100 XP

1mo ago

My Site Stops Working During Deployments

It deploys on push from github and here is my deployment script:

$CREATE_RELEASE()

cd $FORGE_RELEASE_DIRECTORY

$FORGE_COMPOSER install --no-dev --no-interaction --prefer-dist --optimize-autoloader

npm install
npm run build:ssr

$FORGE_PHP artisan storage:link
$FORGE_PHP artisan migrate --force

$ACTIVATE_RELEASE()

$RESTART_QUEUES()

$FORGE_PHP artisan reverb:restart
swez_k's avatar

swez_k started a new conversation+100 XP

1mo ago

My Site Stops Working During Deployments

My site stops working during development, it just keeps loading, this happens only while its being deployed. is this normal behavior ?

Thank you.