swez_k was awarded Best Answer+1000 XP
1mo ago
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 wrote a reply+100 XP
1mo ago
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 liked a comment+100 XP
1mo ago
@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 wrote a reply+100 XP
1mo ago
I know, this is why I posted it on "Forge" channel :)
swez_k wrote a reply+100 XP
1mo ago
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 started a new conversation+100 XP
1mo ago
My site stops working during development, it just keeps loading, this happens only while its being deployed. is this normal behavior ?
Thank you.