Files
upstream-aw-server-rust/aw-sync/test-server.sh
upstream-mirror da934b693c
Some checks failed
Build / ubuntu-latest (push) Failing after 5s
Build / Android (push) Failing after 2s
Build / Code coverage (push) Failing after 2s
Lint / format (push) Failing after 3s
Lint / clippy (push) Failing after 3s
Build / macOS-latest (push) Has been cancelled
Build / windows-latest (push) Has been cancelled
snapshot of https://github.com/ActivityWatch/aw-server-rust.git (master, 2026-09-16; blobs > 131072B omitted)
2026-09-16 00:19:17 +05:00

14 lines
345 B
Bash
Executable File

#!/bin/bash
# port and db used for testing instance
# If port already set, use that, otherwise, use 5667
PORT=${PORT:-5667}
DBPATH=/tmp/aw-server-rust-sync-testing/
mkdir -p $DBPATH
# Set up an isolated ActivityWatch instance
pushd ..
cargo run --bin aw-server -- --testing --port $PORT --dbpath $DBPATH/data.db --no-legacy-import --verbose