From feadc45e753eeb856871729e3970a2f55820915f Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 22 May 2023 10:27:08 -0500 Subject: [PATCH] chore(server): Remove dist directory in command script (#2518) --- Makefile | 10 +++++----- server/package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 90e048a9b4..fb3d017119 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,17 @@ dev: - rm -rf ./server/dist && docker-compose -f ./docker/docker-compose.dev.yml up --remove-orphans + docker-compose -f ./docker/docker-compose.dev.yml up --remove-orphans dev-new: - rm -rf ./server/dist && docker compose -f ./docker/docker-compose.dev.yml up --remove-orphans + docker compose -f ./docker/docker-compose.dev.yml up --remove-orphans dev-new-update: - rm -rf ./server/dist && docker compose -f ./docker/docker-compose.dev.yml up --build -V --remove-orphans + docker compose -f ./docker/docker-compose.dev.yml up --build -V --remove-orphans dev-update: - rm -rf ./server/dist && docker-compose -f ./docker/docker-compose.dev.yml up --build -V --remove-orphans + docker-compose -f ./docker/docker-compose.dev.yml up --build -V --remove-orphans dev-scale: - rm -rf ./server/dist && docker-compose -f ./docker/docker-compose.dev.yml up --build -V --scale immich-server=3 --remove-orphans + docker-compose -f ./docker/docker-compose.dev.yml up --build -V --scale immich-server=3 --remove-orphans stage: docker-compose -f ./docker/docker-compose.staging.yml up --build -V --remove-orphans diff --git a/server/package.json b/server/package.json index 8f308aefc0..8e8049f952 100644 --- a/server/package.json +++ b/server/package.json @@ -16,7 +16,7 @@ "start": "nest start", "nest": "nest", "start:dev": "nest start --watch", - "start:debug": "nest start --debug 0.0.0.0:9230 --watch", + "start:debug": "rimraf dist && nest start --debug 0.0.0.0:9230 --watch", "start:prod": "node dist/main", "lint": "eslint \"{apps,libs}/**/*.ts\" --max-warnings 0", "lint:fix": "npm run lint -- --fix",