fix(docs): Change npx commands to specific versions for deployments.

This commit is contained in:
SamTolmay 2021-09-19 14:44:51 +02:00
parent c9cd643f38
commit f2c380b07a
No known key found for this signature in database
GPG Key ID: 655CB3F5AA745CF8
7 changed files with 10 additions and 10 deletions

View File

@ -75,13 +75,13 @@ The `dev` command starts a Lowdefy development server, running locally. It can b
Run the dev server, watching a relative directory for file changes:
```txt
npx lowdefy@3 dev --watch ../other-project
npx lowdefy@latest dev --watch ../other-project
```
Run the dev server, ignoring the public directory:
```txt
npx lowdefy@3 dev --watch-ignore public/**
npx lowdefy@latest dev --watch-ignore public/**
```
# Configuration

View File

@ -98,12 +98,12 @@ _ref:
Run the dev server, watching a relative directory for file changes:
```txt
npx lowdefy@3 dev --watch ../other-project
npx lowdefy@latest dev --watch ../other-project
```
Run the dev server, ignoring the public directory:
```txt
npx lowdefy@3 dev --watch-ignore public/**
npx lowdefy@latest dev --watch-ignore public/**
```
# Configuration

View File

@ -55,7 +55,7 @@ _ref:
COPY --chown=node:node . .
# Build the Lowdefy config using the Lowdefy CLI
RUN npx lowdefy@latest build
RUN npx lowdefy@3.21.2 build
# Use the correct Lowdefy base image
FROM lowdefy/lowdefy-aws-lambda:3.21.2

View File

@ -65,7 +65,7 @@ _ref:
COPY --chown=node:node . .
# Build the Lowdefy config using the Lowdefy CLI
RUN npx lowdefy@latest build
RUN npx lowdefy@3.21.2 build
# Use the correct Lowdefy base image
FROM lowdefy/lowdefy:3.21.2

View File

@ -46,7 +46,7 @@ _ref:
Configure your Netlify deployment.
- Set your build command to `npx lowdefy@latest build-netlify`.
- Set your build command to `npx lowdefy@3 build-netlify`.
- Set your publish directory to `.lowdefy/publish`.
#### Step 4

View File

@ -32,10 +32,10 @@ USER node
COPY --chown=node:node . .
# Build the Lowdefy config using the Lowdefy CLI
RUN npx lowdefy@latest build
RUN npx lowdefy@3.21.2 build
# Use the correct Lowdefy base image
FROM lowdefy/lowdefy:3.19.0
FROM lowdefy/lowdefy:3.21.2
# Copy build output from build stage
COPY --from=build --chown=node:node /home/node/lowdefy/.lowdefy/build ./build

View File

@ -22,7 +22,7 @@ Link your Github project to Netlify.
Configure your Netlify deployment.
- Set your build command to `npx lowdefy@latest build-netlify`.
- Set your build command to `npx lowdefy@3 build-netlify`.
- Set your publish directory to `.lowdefy/publish`.
- Review the other settings, and deploy your site.