Update readme steps to test deployment locally
This commit is contained in:
parent
c34b443b69
commit
c5fbf0cd8e
@ -13,7 +13,7 @@ EOF
|
|||||||
|
|
||||||
pnpm install || exit 1
|
pnpm install || exit 1
|
||||||
|
|
||||||
# TODO: Fix build script to run
|
# TODO: Fix build script to run
|
||||||
# pnpm build --filter deploy-fe || exit 1
|
# pnpm build --filter deploy-fe || exit 1
|
||||||
|
|
||||||
pnpm build --filter @workspace/gql-client || exit 1
|
pnpm build --filter @workspace/gql-client || exit 1
|
||||||
|
10
readme.md
10
readme.md
@ -98,13 +98,8 @@ Make sure you have:
|
|||||||
|
|
||||||
- Follow the dev install steps for stack-orchestrator from <https://git.vdb.to/cerc-io/stack-orchestrator/src/branch/main/docs/CONTRIBUTING.md#install>
|
- Follow the dev install steps for stack-orchestrator from <https://git.vdb.to/cerc-io/stack-orchestrator/src/branch/main/docs/CONTRIBUTING.md#install>
|
||||||
|
|
||||||
<!-- TODO: Remove after SO PR https://git.vdb.to/cerc-io/stack-orchestrator/pulls/969 is merged -->
|
|
||||||
- Change branch
|
|
||||||
```bash
|
|
||||||
git checkout ng-support-custom-nextjs
|
|
||||||
```
|
|
||||||
|
|
||||||
- Build the container for app
|
- Build the container for app
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
laconic-so build-webapp --source-repo <path-to-app-repo>/laconic-deployer-frontend --base-container cerc/nextjs-base
|
laconic-so build-webapp --source-repo <path-to-app-repo>/laconic-deployer-frontend --base-container cerc/nextjs-base
|
||||||
```
|
```
|
||||||
@ -112,8 +107,9 @@ Make sure you have:
|
|||||||
- Create an env file as described in [previous steps](#3-configure-environment-variables)
|
- Create an env file as described in [previous steps](#3-configure-environment-variables)
|
||||||
|
|
||||||
- Run the webapp container locally
|
- Run the webapp container locally
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -p 3000:3000 --env-file <path-to-env-file> cerc/laconic-deployer-frontend:local
|
docker run -p 3000:80 --env-file <path-to-env-file> cerc/laconic-deployer-frontend:local
|
||||||
```
|
```
|
||||||
|
|
||||||
- Scripts used for deployment
|
- Scripts used for deployment
|
||||||
|
@ -16,7 +16,7 @@ EOF
|
|||||||
# For debugging
|
# For debugging
|
||||||
# cat .env.local
|
# cat .env.local
|
||||||
|
|
||||||
# TODO: Need production build in .next. Check build-webapp.sh
|
# TODO: Need production build in .next. Check build-webapp.sh
|
||||||
# pnpm start -p ${CERC_LISTEN_PORT:-80}
|
# pnpm start -p ${CERC_LISTEN_PORT:-80}
|
||||||
|
|
||||||
pnpm dev -p ${CERC_LISTEN_PORT:-80}
|
pnpm dev -p ${CERC_LISTEN_PORT:-80}
|
||||||
|
Loading…
Reference in New Issue
Block a user