From 69a59a8807862e9acfe0d98706ee358bdde40d2d Mon Sep 17 00:00:00 2001 From: Jewei Mak Date: Tue, 14 Jan 2025 11:46:09 +0800 Subject: [PATCH] Add deployment script --- deploy.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..3ee6a64 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,13 @@ +php artisan down || true + +git reset --hard +git pull origin main + +composer install --no-dev --no-interaction --optimize-autoloader + +bun install --production +bun run build + +php artisan migrate --force +php artisan optimize +php artisan up \ No newline at end of file