Unverified Commit 73aec20e authored by Aral Balkan's avatar Aral Balkan
Browse files

Fix dev script so it doesn’t result in an endless loop on Linux

parent 8cb8de37
# Kill anything running on our port.
# (This is because the test at the end of the install leaves the server running.)
lsof -ti tcp:8888 | xargs kill
processIDOfExistingBuilderServerIfAny=$(lsof -ti tcp:8888)
if [ $? -eq 0 ]; then
echo "${processIDOfExistingBuilderServerIfAny}" | xargs kill
processIDOfExistingBetterWebServerIfAny=$(lsof -ti tcp:3000)
if [ $? -eq 0 ]; then
echo "${processIDOfExistingBetterWebServerIfAny}" | xargs kill
# Start the development-time web server.
pushd ~/better.fyi/.private/site-local >/dev/null
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