Fix docker alias to work correctly on Mac (probably Windows as well). Thanks @domibies #179.

This commit is contained in:
Sebastian Jeltsch
2025-11-30 12:25:08 +01:00
parent 40e7f2ff88
commit badd85c480
3 changed files with 5 additions and 3 deletions

View File

@@ -112,7 +112,8 @@ Alternatively, run TrailBase using the Docker image:
alias trail='
mkdir -p traildepot && \
docker run \
--network host \
-p 4000:4000 \
-e ADDRESS=0.0.0.0:4000 \
--mount type=bind,source="$PWD"/traildepot,target=/app/traildepot \
trailbase/trailbase /app/trail'
```

View File

@@ -102,7 +102,7 @@ pub async fn init_app_state(args: InitArgs) -> Result<(bool, AppState), InitErro
)
.map_err(|err| InitError::CustomInit(err.to_string()))?;
// TODO: We'd have to inject WASM runtimes here to make it available to connection..
// NOTE: We're injecting a WASM runtime to make custom functions available.
let (conn, new_db) = crate::connection::init_main_db(
Some(&args.data_dir),
Some(json_schema_registry.clone()),

View File

@@ -7,7 +7,8 @@ export const installDocker= `
alias trail='
mkdir -p traildepot && \\
docker run \\
--network host \\
-p 4000:4000 \\
-e ADDRESS=0.0.0.0:4000 \\
--mount type=bind,source="$PWD"/traildepot,target=/app/traildepot \\
trailbase/trailbase /app/trail'
`;