docs: update deployment.md (#1898)

cargo-leptos@0.2.0 changes the file structure under target folder
This commit is contained in:
Quan Hua
2023-10-16 06:55:36 +07:00
committed by GitHub
parent 8eed999611
commit d6a9d2efdf

View File

@@ -54,7 +54,7 @@ RUN cargo leptos build --release -vv
FROM rustlang/rust:nightly-bullseye as runner
# Copy the server binary to the /app directory
COPY --from=builder /app/target/server/release/leptos_start /app/
COPY --from=builder /app/target/release/leptos-start /app/
# /target/site contains our JS/WASM/CSS, etc.
COPY --from=builder /app/target/site /app/site
# Copy Cargo.toml if its needed at runtime