#!/bin/bash

fw_depends dlang dub

sed -i 's|127.0.0.1|'"${DBHOST}"'|g' source/app.d

# Clean any files from last run
rm -f fwb
rm -rf .dub

dub build --force

./fwb &

#!/bin/bash

fw_depends dlang dub

# Clean any files from last run
rm -f fwb
rm -rf .dub

dub build

./fwb &

Read $DBHOST directly within the test application.
Read $DBHOST directly within the test application.

Also no need to force a rebuild.
