From e2013184fc7b5588cf889c4b07218d517502ec55 Mon Sep 17 00:00:00 2001 From: Tristan Chin Date: Thu, 13 Jul 2023 18:43:45 -0400 Subject: [PATCH] [web] Fix deployment --- .github/workflows/develop.yml | 2 +- package.json | 1 + packages/web/README.md | 11 ++++++----- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 441c748..f408174 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -6,7 +6,7 @@ on: - 'develop' jobs: - test-pr: + test-build: runs-on: ubuntu-latest steps: - name: Checkout code diff --git a/package.json b/package.json index 6346beb..eed4085 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "dev": "lerna run build --scope \"gpt-turbo\" && lerna watch --scope \"gpt-turbo\" --include-dependencies -- lerna run build --scope=\"gpt-turbo\"", "build": "lerna run build", "build:lib": "lerna run build --scope \"gpt-turbo\"", + "build:web": "lerna run build --scope \"gpt-turbo-web\"", "lint:strict": "lerna run lint:strict", "lint:fix": "lerna run lint:fix", "release": "npm run build && lerna publish", diff --git a/packages/web/README.md b/packages/web/README.md index d834199..23f8f86 100644 --- a/packages/web/README.md +++ b/packages/web/README.md @@ -50,11 +50,12 @@ The following instructions are for deploying the web app to [Render](https://ren 2. Option 2: Link this repository: https://github.com/maxijonson/gpt-turbo . 3. Give the site a name, for example `gpt-turbo-web`. 4. Select the `master` branch as the branch to deploy. -5. Set the root directory to `packages/web`. -6. Set the build command to `npm run build`. -7. Set the publish directory to `dist`. (`packages/web/dist`) -8. (Optional) If you chose to link this repository (option 2), you may want to disable the "Auto-Deploy" option under the "Advanced" tab. This will prevent Render from automatically deploying the web app every time a change is made to it. You can then manually deploy the web app later. -9. Click "Create Static Site". +5. Leave the root directory blank. +6. Set the build command to `npm run build:web`. +7. Set the publish directory to `packages/web/dist`. +8. Add an environment variable `NODE_VERSION` with `lts` as the value. +9. (Optional) If you chose to link this repository (option 2), you may want to disable the "Auto-Deploy" option under the "Advanced" tab. This will prevent Render from automatically deploying the web app every time a change is made to it. You can then manually deploy the web app later. +10. Click "Create Static Site". ## Attributions