apply config file when starting riot, not installing, so we can support riots that were built by another process
This commit is contained in:
parent
31fcf08fec
commit
e50420dd1b
3 changed files with 18 additions and 2 deletions
|
@ -12,6 +12,13 @@ fi
|
|||
|
||||
echo "running riot on http://localhost:$PORT ..."
|
||||
pushd riot-web/webapp/ > /dev/null
|
||||
|
||||
# backup config file before we copy template
|
||||
if [ -f config.json ]; then
|
||||
mv config.json $CONFIG_BACKUP
|
||||
fi
|
||||
cp $BASE_DIR/config-template/config.json .
|
||||
|
||||
python -m SimpleHTTPServer $PORT > /dev/null 2>&1 &
|
||||
PID=$!
|
||||
popd > /dev/null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue