mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-02-11 14:20:07 +08:00
fix(docs): Change npx commands to specific versions for deployments.
This commit is contained in:
parent
c9cd643f38
commit
f2c380b07a
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user