Server deployment stuff
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user