use in-memory database, faster and no need to clear before every run

This commit is contained in:
Bruno Windels 2018-07-23 10:21:38 +02:00
parent b42a0411f3
commit 048a367081
3 changed files with 2 additions and 8 deletions

2
run.sh
View file

@ -1,4 +1,4 @@
tmux \ tmux \
new-session "sh riot/stop.sh; sh synapse/stop.sh; sh synapse/clear.sh; sh synapse/start.sh; sh riot/start.sh; read"\; \ new-session "sh riot/stop.sh; sh synapse/stop.sh; sh synapse/start.sh; sh riot/start.sh; read"\; \
split-window "sleep 5; node start.js; sh riot/stop.sh; sh synapse/stop.sh; read"\; \ split-window "sleep 5; node start.js; sh riot/stop.sh; sh synapse/stop.sh; read"\; \
select-layout even-vertical select-layout even-vertical

View file

@ -1,6 +0,0 @@
BASE_DIR=$(realpath $(dirname $0))
pushd $BASE_DIR
pushd installations/consent
rm homeserver.db
popd
popd

View file

@ -193,7 +193,7 @@ database:
# Arguments to pass to the engine # Arguments to pass to the engine
args: args:
# Path to the database # Path to the database
database: "{{SYNAPSE_ROOT}}homeserver.db" database: ":memory:"
# Number of events to cache in memory. # Number of events to cache in memory.
event_cache_size: "10K" event_cache_size: "10K"