swez_k was awarded Best Answer+1000 XP
3w ago
swez_k wrote a reply+100 XP
3w ago
swez_k liked a comment+100 XP
3w 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
4w ago
swez_k wrote a reply+100 XP
4w 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
4w ago