소스 검색

fix: make run conditional logs removal (#579)

* fix: make run conditional logs removal

* fix: make run fail-safe logs & pipe management
ncrypted | Oliver 1 년 전
부모
커밋
801417dcbf
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Makefile

+ 2 - 1
Makefile

@@ -31,7 +31,8 @@ start-frontend:
 # Run the app
 run:
 	@echo "Running the app..."
-	@rm logs/pipe
+	@mkdir -p logs
+	@rm -f logs/pipe
 	@mkfifo logs/pipe
 	@cat logs/pipe | (make start-backend) &
 	@echo 'test' | tee logs/pipe | (make start-frontend)