Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ args="$@ -p 80"
file=/data/db.json
if [ -f $file ]; then
echo "Found db.json, trying to open"
args="$args db.json"
args="$args --watch db.json"
fi

file=/data/routes.json
if [ -f $file ]; then
echo "Found routes.json, trying to open"
args="$args --routes routes.json"
fi

file=/data/file.js
Expand Down