From f94199e54b2cf03560ea056850a65ea5145f50d1 Mon Sep 17 00:00:00 2001 From: Nick Martin Date: Wed, 29 Feb 2012 18:30:07 -0800 Subject: [PATCH] Add handy script for executing node on helper scripts. --- admin/node.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 admin/node.sh diff --git a/admin/node.sh b/admin/node.sh new file mode 100755 index 0000000000..3326cd3bc8 --- /dev/null +++ b/admin/node.sh @@ -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" $*