Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
[web] Fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
maxijonson committed Jul 13, 2023
1 parent 98265ec commit e201318
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'develop'

jobs:
test-pr:
test-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 6 additions & 5 deletions packages/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e201318

Please sign in to comment.