Server deployment stuff

This commit is contained in:
John Lyon-Smith
2018-03-19 15:04:10 -07:00
parent 59c11d791d
commit faf99108e9
12 changed files with 164 additions and 33 deletions

View File

@@ -1,16 +1,16 @@
#!/bin/bash
script_dir=$(dirname $0)
script="${script_dir}/src/bin/$1"
script="${script_dir}/dist/bin/${1}.js"
if [[ -z "$1" ]]; then
echo "usage: $(basename $0) <command>"
echo ""
echo "Available scripts are"
ls -1 ${script_dir}/src/bin
echo "Available commands are"
echo ""
find ${script_dir}/dist/bin -name \*.js -exec basename {} .js \;
exit -1
fi
# For scripts that need config access
export NODE_CONFIG_DIR="${script_dir}/config"