diff --git a/apprunner.yaml b/apprunner.yaml new file mode 100644 index 0000000..123eee6 --- /dev/null +++ b/apprunner.yaml @@ -0,0 +1,16 @@ +version: 1.0 + +runtime: python3 # Specify the runtime, assuming the main runtime is Python + +build: + commands: + - cd frontend + - npm install + - npm run build + - cd ../linguaphoto + - pip install -r requirements.txt + +run: + command: | + cd frontend && npx serve -s build -l 8080 & # Serve frontend on port 8080 + cd ../linguaphoto && fastapi run --port 8080 # Run backend server \ No newline at end of file diff --git a/start.sh b/start.sh deleted file mode 100644 index 79015fc..0000000 --- a/start.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -# Navigate to the frontend, install dependencies, and build it -cd frontend -npm install -npm run build - -# Start serving the frontend (you might use a static server like serve) -npx serve -s build & - -# Navigate to the backend, install dependencies, and start the server -cd ../linguaphoto -pip install -r requirements.txt -fastapi run --port 8080 \ No newline at end of file