From ad30ee40d44c3c28b03cf723429d52abdf89fb0e Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Thu, 14 Mar 2024 19:24:18 +0100 Subject: [PATCH] build: update deployment commands --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9d6cd59..513dbcc 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "deploy": "rsync --delete -rP app artisan bootstrap composer.* config database lang resources routes storage tests ovhvps:~/track", "deploy:public": "rsync --delete -rP public ovhvps:~/track", "deploy:dependencies": "rsync --delete -rP vendor ovhvps:~/track", - "deploy:full": "npm run deploy && npm run deploy:public && npm run deploy:dependencies", - "sync": "rsync -rP ./public/ ovhvps:~/track/public", + "deploy:full": "npm run deploy && npm run deploy:public && npm run deploy:dependencies && npm run deploy:finish", + "deploy:finish": "ssh ovhvps 'cd track && docker compose down && docker system prune -f && docker compose up -d --build'", "lint": "npm run lint:php; npm run lint:css", "lint:fix": "npm run lint:php:fix; npm run lint:css:fix", "lint:php": "./vendor/bin/phpcs",