Commit 716e6c8 1 parent d5b6165 commit 716e6c8 Copy full SHA for 716e6c8
File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,16 @@ For core:
111
111
./gradlew shadowJar && ALL_INFRA=true java -jar -ea -Xmx12g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=dump.hprof build/libs/osrd-all.jar worker --editoast-url http://localhost:8090/
112
112
```
113
113
114
+ Removing cache on editoast is also usually helpful to repeat requests
115
+ (please see the [ dedicated section] ( ../editoast/README.md#no-cache-mode ) ). \
116
+ For editoast server, combining single-worker and no-cache modes requires a
117
+ local instance (or a tweak of ` docker-compose.single-worker.yml ` ):
118
+ ``` sh
119
+ cd ../editoast
120
+ EDITOAST_CORE_SINGLE_WORKER=true NO_CACHE=true cargo run -- runserver
121
+ ```
122
+
123
+
114
124
Clean or restart the whole stack can be necessary sometimes and is also available
115
125
through docker compose CLI (the following wipes the database too):
116
126
``` sh
Original file line number Diff line number Diff line change @@ -77,6 +77,13 @@ cargo install --locked taplo-cli
77
77
78
78
To setup ` grcov ` , please see [ its documentation] ( https://github.com/mozilla/grcov#how-to-get-grcov )
79
79
80
+ ## No-cache mode
81
+
82
+ Running editoast with deactivated cache can help repeating calls when debugging.
83
+ ``` sh
84
+ NO_CACHE=true cargo run -- runserver
85
+ ```
86
+
80
87
## For M1 MacOS users
81
88
82
89
Our ` docker-compose.yml ` at the root of the project uses the ` postgis ` image by default.
You can’t perform that action at this time.
0 commit comments