File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ Features missing compared to the Python implementation of aw-server:
19
19
20
20
Install rust nightly with ` rustup ` :
21
21
22
- ```
22
+ ``` sh
23
23
rustup default nightly
24
24
```
25
25
26
26
Build with ` cargo ` :
27
27
28
- ```
28
+ ``` sh
29
29
cargo build --release
30
30
```
31
31
@@ -36,8 +36,12 @@ Your built executable will be located in `./target/release/aw-server-rust`
36
36
37
37
If you want to quick-compile for debugging, run cargo run from the project root:
38
38
39
- ```
39
+ ``` sh
40
40
cargo run --bin aw-server
41
41
```
42
42
43
43
* NOTE:* This will start aw-server-rust in testing mode (on port 5666 instead of port 5600).
44
+
45
+ ### Syncing
46
+
47
+ For details about aw-sync-rust, see the [ README] ( ./aw-sync/README.md ) in its subdirectory.
Original file line number Diff line number Diff line change @@ -23,15 +23,15 @@ cargo run --bin aw-server -- --testing --port $PORT --dbpath test-$PORT.sqlite -
23
23
24
24
You can create some test data by opening ` http://localhost:5667/#/stopwatch ` and creating a few events.
25
25
26
- Then run ` cargo run --bin aw-sync-rust ` to sync your instance's buckets with the target directory.
26
+ Then run ` cargo run --bin aw-sync-rust -- --port 5667 ` to sync your instance's buckets with the target directory.
27
27
28
28
### Pulling from the sync directory
29
29
30
30
Now to sync things back from the sync directory onto another instance. First, lets start another instance:
31
31
32
- ```
32
+ ``` sh
33
33
PORT=5668
34
34
cargo run --bin aw-server -- --testing --port $PORT --dbpath test-$PORT .sqlite --device-id $PORT --no-legacy-import
35
35
```
36
36
37
- Now run ` aw-sync-rust ` again .
37
+ Now run ` cargo run --bin aw-sync-rust -- --port 5668 ` to pull buckets from the sync dir (retrieving events from the 5667 instance) and push buckets from the 5668 instance to the sync dir .
You can’t perform that action at this time.
0 commit comments