From eef1492023fc3a2f52f3cfe62be9d4a2c509d8d4 Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 05:21:51 +0300 Subject: [PATCH 1/2] Update apprunner.yaml --- apprunner.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apprunner.yaml b/apprunner.yaml index 9510980..d84821e 100644 --- a/apprunner.yaml +++ b/apprunner.yaml @@ -3,9 +3,9 @@ runtime: python311 build: commands: build: - - cd linguaphoto - - pip install --upgrade --upgrade-strategy eager -r requirements.txt + - cd frontend + - npm install + - npm run build run: - command: | - cd linguaphoto - uvicorn main:app --host 0.0.0.0 --port 8080 + command: + cd frontend && npx serve -s build -l 8080 From c166d38c50d6ff0ad2df0394b52eb2229b54a5c8 Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Tue, 20 Aug 2024 05:32:07 +0300 Subject: [PATCH 2/2] Update apprunner.yaml --- apprunner.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/apprunner.yaml b/apprunner.yaml index d84821e..f79dd5a 100644 --- a/apprunner.yaml +++ b/apprunner.yaml @@ -1,11 +1,12 @@ version: 1.0 -runtime: python311 +runtime: node18 + build: commands: - build: - - cd frontend - - npm install - - npm run build + - cd frontend + - npm install + - npm run build + run: - command: + command: | cd frontend && npx serve -s build -l 8080