Move discourse dev data out of tmp

Fix watch for restart so it works with puma
This commit is contained in:
Sam
2017-05-18 11:36:12 -04:00
parent 4fb335f1f0
commit e7c2ad41ca
4 changed files with 28 additions and 14 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
SCRIPTPATH=$(cd "$(dirname "$0")"; pwd -P)
SOURCE_DIR=$(cd "$SCRIPTPATH" && cd ../.. && pwd -P)
DATA_DIR="$SOURCE_DIR/tmp/postgres"
DATA_DIR="$SOURCE_DIR/data/postgres"
show_help() {
cat <<EOF

View File

@ -1,7 +1,7 @@
#!/bin/bash
SCRIPTPATH=$(cd "$(dirname "$0")"; pwd -P)
SOURCE_DIR=$(cd "$SCRIPTPATH" && cd ../.. && pwd -P)
DATA_DIR=$SOURCE_DIR/tmp/postgres
DATA_DIR=$SOURCE_DIR/data/postgres
# Should this also run /etc/runit/1.d/ensure_database, or will that
# happen automatically?