diff --git a/docker-compose.yml b/docker-compose.yml index 3b3bcec..666f201 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ -version: '3.9' - + services: backend: + build: context: ./backend dockerfile: Dockerfile @@ -17,7 +17,9 @@ services: ports: - "${BACKEND_PORT:-7001}:${BACKEND_PORT:-7001}" - command: poetry run uvicorn main:app --host 0.0.0.0 --port ${BACKEND_PORT:-7001} + command: poetry run uvicorn main:app --host 0.0.0.0 --port ${BACKEND_PORT:-7001} --workers 2 + + restart: always frontend: build: @@ -25,3 +27,5 @@ services: dockerfile: Dockerfile ports: - "5173:5173" + + restart: always \ No newline at end of file diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 9b4ce1f..f41a5d5 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -54,8 +54,6 @@ function App() { const [updateInstruction, setUpdateInstruction] = useState(""); const [isImportedFromCode, setIsImportedFromCode] = useState(false); - - // Settings const [settings, setSettings] = usePersistedState( { @@ -431,67 +429,6 @@ function App() { {(appState === AppState.CODING || appState === AppState.CODE_READY) && ( -<<<<<<< HEAD - <> - {/* Show code preview only when coding */} - {appState === AppState.CODING && ( -
-
- - {executionConsole.slice(-1)[0]} -
-
- -
- -
- )} - - {appState === AppState.CODE_READY && ( -
-
-