This repository was archived by the owner on May 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpacefile
More file actions
41 lines (41 loc) · 1.35 KB
/
Spacefile
File metadata and controls
41 lines (41 loc) · 1.35 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
# Spacefile Docs: https://go.deta.dev/docs/spacefile/v0
v: 0
app_name: Auth
micros:
- name: dfo-auth
src: .
engine: custom
commands:
- export BUN_INSTALL_CACHE_DIR=/tmp/bun/cache
- apt-get update
- apt-get -y install zip
- curl -L --fail --location --progress-bar --output out.zip https://github.com/oven-sh/bun/releases/download/bun-v1.0.3/bun-linux-x64.zip
- unzip -d ./ -o out.zip
- mv ./bun-linux-x64/bun ./
- rm -r ./bun-linux-x64
- chmod +x ./bun
- ./bun i
run: ./bun index.ts
primary: true
presets:
env:
- name: BUN_INSTALL_CACHE_DIR
description: DO NOT TOUCH
default: "/tmp/bun/cache"
- name: PLOT_ID
description: The id of the control plot
- name: PLOT_OWNER
description: The owner of the control plot
- name: AUTH_KEY
description: The auth key to be used by the control plot
- name: DB_PATH
description: "What directory the database is in. :memory: works"
default: ":memory:"
- name: DETA
description: Deta auth key
- name: DETA_DRIVE
description: Name of the deta drive to use
default: dfonline
- name: DETA_PATH
description: The name in the deta drive to say the database to
default: database.db