Add handy script for executing node on helper scripts.

This commit is contained in:
Nick Martin
2012-02-29 18:30:07 -08:00
parent 7227e9d880
commit f94199e54b

15
admin/node.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
ORIGDIR=$(pwd)
cd $(dirname $0)
cd ..
TOPDIR=$(pwd)
# download dev bundle if we don't have it already
if [ ! -d dev_bundle ] ; then
./meteor --version
fi
cd "$ORIGDIR"
export NODE_PATH="$TOPDIR/dev_bundle/lib/node_modules"
exec "$TOPDIR/dev_bundle/bin/node" $*