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.
It depends ENTIRELY on your deployment method.
There are ways to avoid any downtime.
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
This is your script from Forge. Are you hosted on Forge? If so, ask them...
I know, this is why I posted it on "Forge" channel :)
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
Please sign in or create an account to participate in this conversation.