-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathzerops.yml
More file actions
46 lines (35 loc) · 1.03 KB
/
zerops.yml
File metadata and controls
46 lines (35 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
zerops:
- setup: app
# ==== BUILD ====
build:
base: rust@nightly
prepareCommands:
- curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
- cargo binstall cargo-leptos --no-confirm
- rustup target add wasm32-unknown-unknown
envVariables:
SQLX_OFFLINE: "true"
buildCommands:
- cargo leptos build --release 2>&1
deployFiles:
- target/release/~server
- target/site/~
cache: target
# ==== RUN ====
run:
base: rust@nightly
ports:
- port: 3000
httpSupport: true
envVariables:
RUST_LOG: info
LEPTOS_SITE_ADDR: 0.0.0.0:3000
LEPTOS_SITE_ROOT: /var/www
LEPTOS_SITE_PKG_DIR: pkg
LEPTOS_OUTPUT_NAME: twitter_clone_fullstack
DATABASE_URL: ${postgresql_connectionString}
start: ./server
healthCheck:
httpGet:
port: 3000
path: /