Skip to content

Commit

Permalink
Update apprunner.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Serhii Ofii authored Aug 19, 2024
1 parent bcddff7 commit f4b1f9b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apprunner.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
version: 1.0

runtime: python3 # Specify the runtime, assuming the main runtime is Python
runtime: python3.11 # Specify the runtime as Python 3.11

build:
commands:
- cd frontend
- npm install
- npm run build
- cd ../linguaphoto
- pip install --upgrade pip # Ensure pip is up to date
- pip install -r requirements.txt

run:
command: |
cd frontend && npx serve -s build -l 3000 & # Serve frontend on port 3000
cd ../linguaphoto && uvicorn main:app --host 0.0.0.0 --port 8080 # Run backend server on port 8080

0 comments on commit f4b1f9b

Please sign in to comment.