remove dev server

This commit is contained in:
dandds 2018-10-15 16:52:12 -04:00
parent 8a207b3bc6
commit 6a2a7545ae
2 changed files with 2 additions and 38 deletions

View File

@ -77,13 +77,9 @@ virtualenvs for you when you enter and leave the directory.
To start the app locally in the foreground and watch for changes:
script/dev_server
script/server
To watch for changes to any js/css assets:
yarn watch
After running `script/dev_server`, the application is available at
After running `script/server`, the application is available at
[`http://localhost:8000`](http://localhost:8000).

View File

@ -1,32 +0,0 @@
#!/bin/bash
# script/dev_server: Launch a local dev version of the server in the background
#
# WIP
#
source "$(dirname "${0}")"/../script/include/global_header.inc.sh
# Create a function to run after a trap is triggered
reap() {
kill -s SIGTERM -- "-$$"
sleep 0.1
exit
}
# Register trapping of SIGTERM and SIGINT
trap reap SIGTERM SIGINT
# Display the script PID, which will also be the process group ID for all
# child processes
echo "Process Group: $$"
# Set server launch related environment variables
DEBUG=1
LAUNCH_ARGS="$*"
# Launch the app
source ./script/server &
wait