diff --git a/doc/pizero.md b/doc/pizero.md index 1586de7a..6c0eaacb 100644 --- a/doc/pizero.md +++ b/doc/pizero.md @@ -47,30 +47,26 @@ These instructions assume you have the following setup: cd /app/databag/net/server
/usr/local/go/bin/go build databag
-## Step 6: setup databag paths +## Step 6: setup databag store path mkdir -p /var/lib/databag
- mkdir -p /opt/databag/transform
- cp /app/databag/net/container/transform/* /opt/databag/transform/
## Step 7: initialize the internal datbase sqlite3 /var/lib/databag/databag.db "VACUUM;"
sqlite3 /var/lib/databag/databag.db "CREATE TABLE IF NOT EXISTS 'configs' ('id' integer NOT NULL UNIQUE,'config_id' text NOT NULL,'str_value' text,'num_value' integer,'bool_value' numeric,'bin_value' blob,PRIMARY KEY ('id'));"
sqlite3 /var/lib/databag/databag.db "CREATE UNIQUE INDEX IF NOT EXISTS 'idx_configs_config_id' ON 'configs'('config_id');"
- sqlite3 /var/lib/databag/databag.db "insert into configs (config_id, str_value) values ('asset_path', '/var/lib/databag/');"
- sqlite3 /var/lib/databag/databag.db "insert into configs (config_id, str_value) values ('script_path', '/opt/databag/transform/');"
## Step 8: download the webapp // because the react toolchain isn't available for the pi zero, the webapp is built in a github action
- Download webapp.zip from the most recent build:
- https://github.com/balzack/databag/actions/runs/4033318007
- SCP webapp.zip into the pi
+ Download webapp.tar.gz from the most recent release:
+ https://github.com/balzack/databag/releases/download/v1.1.11/webapp.tar.gz
+ SCP webapp.tar.gz into the pi
Extract it into the web/build directory
mkdir /app/databag/net/web/build
- unzip webapp.zip -d /app/databag/net/web/build/
+ tar xf webapp.tar.gz -C /app/databag/net/web/build/
## Step 9: launch the server cd /app/databag/net/server
- nohup nice -n -5 /usr/local/go/bin/go run databag
+ nohup nice -n -5 /usr/local/go/bin/go run databag -p 443 -s /var/lib/databag -w /app/databag/net/web/build &
## Step 10: configure the server Open your brower to the pi hostname
@@ -79,9 +75,6 @@ These instructions assume you have the following setup: Select the 'cog' to bring up the settings modal
- set your hostname
- set the key to RSA 2048
- - enable images
- - disable audio
- - disable video
## Step 11: create accounts Still in the admin dashboard