mirror of
https://github.com/trailbaseio/trailbase.git
synced 2025-12-16 15:15:51 -06:00
Fix docker alias to work correctly on Mac (probably Windows as well). Thanks @domibies #179.
This commit is contained in:
@@ -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'
|
||||
```
|
||||
|
||||
@@ -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()),
|
||||
|
||||
@@ -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'
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user