mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-12 00:31:48 -05:00
15 lines
371 B
Text
15 lines
371 B
Text
|
#!/bin/bash
|
||
|
|
||
|
pushd `dirname $0` > /dev/null
|
||
|
SCRIPTPATH=`pwd -P`
|
||
|
popd > /dev/null
|
||
|
|
||
|
|
||
|
SOURCE_DIR=`(cd $SCRIPTPATH && cd ../../ && pwd)`
|
||
|
DATA_DIR=$SOURCE_DIR/tmp/postgres
|
||
|
|
||
|
echo $SOURCE_DIR
|
||
|
echo $DATA_DIR
|
||
|
|
||
|
docker run -d -p 3000:3000 -v $DATA_DIR:/shared/postgres_data -v $SOURCE_DIR:/src --hostname=discourse_dev --name=discourse_dev --restart=always discourse/dev /sbin/boot
|