Commit b34c4df6 authored by Aral Balkan's avatar Aral Balkan

Update dev script and rename to develop

parent cd902901
Pipeline #864 canceled with stages
#!/bin/bash
# Kill anything running on our port.
# (This is because the test at the end of the install leaves the server running.)
processIDOfExistingBuilderServerIfAny=$(lsof -ti tcp:8888)
if [ $? -eq 0 ]; then
echo "${processIDOfExistingBuilderServerIfAny}" | xargs kill
fi
processIDOfExistingBetterWebServerIfAny=$(lsof -ti tcp:3000)
if [ $? -eq 0 ]; then
echo "${processIDOfExistingBetterWebServerIfAny}" | xargs kill
fi
# Start the development-time web server.
pushd ~/better.fyi/.private/site-local >/dev/null
./dev &
popd >/dev/null
# Start Blockdown Builder
nodemon -e coffee,litcoffee,js,html,md,css,svg,png,jpg,json,safariextz,plist --watch ~/better.fyi/themes --watch ~/better.fyi/content --watch . Main.coffee
#!/bin/bash
# Start serving the dist directory at https://localhost as a background process.
site dist &
SITE_JS_PID=$!
# Start Blockdown Builder
nodemon -e coffee,litcoffee,js,html,md,css,svg,png,jpg,json,safariextz,plist --watch ~/better.fyi/themes --watch ~/better.fyi/content --watch . Main.coffee
# On exit, kill the Site.js background process.
kill $SITE_JS_PID
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