Просмотр исходного кода

fix: make run conditional logs removal (#579)

* fix: make run conditional logs removal

* fix: make run fail-safe logs & pipe management
ncrypted | Oliver 1 год назад
Родитель
Сommit
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)