瀏覽代碼

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)