mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 19:00:32 -06:00
e7c2ad41ca
Fix watch for restart so it works with puma
9 lines
346 B
Bash
Executable File
9 lines
346 B
Bash
Executable File
#!/bin/bash
|
|
SCRIPTPATH=$(cd "$(dirname "$0")"; pwd -P)
|
|
SOURCE_DIR=$(cd "$SCRIPTPATH" && cd ../.. && pwd -P)
|
|
DATA_DIR=$SOURCE_DIR/data/postgres
|
|
|
|
# Should this also run /etc/runit/1.d/ensure_database, or will that
|
|
# happen automatically?
|
|
docker run -it -v $DATA_DIR:/shared/postgres_data discourse/dev /bin/bash -c "rm -fr /shared/postgres_data/*"
|