swez_k's avatar

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.

0 likes
6 replies
Snapey's avatar

It depends ENTIRELY on your deployment method.

There are ways to avoid any downtime.

swez_k's avatar

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
Snapey's avatar

This is your script from Forge. Are you hosted on Forge? If so, ask them...

swez_k's avatar

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

swez_k's avatar
swez_k
OP
Best Answer
Level 1

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 or to participate in this conversation.