Skip to content

takashialpha/webpages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my webpages

uses a Leptos and Axum stack.

Prerequisites

  1. WASM target: rustup target add wasm32-unknown-unknown
  2. cargo install cargo-leptos

Running locally

cargo leptos serve --release

The server listens on [::1]:3000 (IPv6 loopback only) by default, configurable via site-addr in Cargo.toml or the LEPTOS_SITE_ADDR environment variable.

Building for release

cargo leptos build --release

Produces the server binary in target/release and the site assets in target/site.

Deploying

After cargo leptos build --release, copy the server binary and the target/site directory to the target host, then set:

export LEPTOS_OUTPUT_NAME="webpages"
export LEPTOS_SITE_ROOT="site"
export LEPTOS_SITE_PKG_DIR="pkg"
export LEPTOS_SITE_ADDR="[::1]:3000"
export LEPTOS_RELOAD_PORT="3001"

and run the binary.

License

Licensed under the Apache License, Version 2.0.

About

my web pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors