Commit 6c251301 authored by Aral Balkan's avatar Aral Balkan

Updated dev script to check for anything running on port 3000 before running the builder.

parent 26f6a509
......@@ -12,5 +12,12 @@ echo "\n❤ Starting Better for development.\n"
echo " · Opening iOS app workspace…\n"
open Better.xcworkspace
# Check that nothing else is running on port 3000 (which Builder uses)
lsof -t -i tcp:3000 >/dev/null 2>&1
if [[ $? == 0 ]]; then
echo "Builder (or something else) is running on port 3000. Skipping running Builder…"
exit 1
echo " · Starting Better Builder development environment…"
runIn ../builder ./dev | LC_ALL=C sed 's/^/ /g'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment