make it possible to set release profile for rkgk in justfile
This commit is contained in:
parent
b2e43838d5
commit
c6870cb22d
10
Justfile
10
Justfile
|
@ -1,10 +1,12 @@
|
|||
port := "8080"
|
||||
profile := "dev"
|
||||
wasm_profile := "wasm-" + profile
|
||||
|
||||
serve wasm_profile="wasm-dev": (wasm wasm_profile)
|
||||
RKGK_PORT={{port}} RKGK_WASM_PATH=target/wasm32-unknown-unknown/{{wasm_profile}} cargo run -p rkgk
|
||||
serve: wasm
|
||||
RKGK_PORT={{port}} RKGK_WASM_PATH=target/wasm32-unknown-unknown/{{wasm_profile}} cargo run -p rkgk --profile {{profile}}
|
||||
|
||||
wasm profile="wasm-dev":
|
||||
cargo build -p haku-wasm --target wasm32-unknown-unknown --profile {{profile}}
|
||||
wasm:
|
||||
cargo build -p haku-wasm --target wasm32-unknown-unknown --profile {{wasm_profile}}
|
||||
|
||||
deploy:
|
||||
bash admin/deploy.bash
|
||||
|
|
Loading…
Reference in a new issue