Skip to content

Commit

Permalink
a more generic run script
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud committed Mar 5, 2014
1 parent 664949e commit 7ec801a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
14 changes: 14 additions & 0 deletions tools/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
export NODE_ENV=${2:-'development'}
export DEBUG='dbj:*'

if [[ -z $1 ]]; then
echo
echo 'Must provide a script name to run.'
echo
exit 1
fi

# make sure we are at app root
cd `dirname $0`/../
node "tools/${1}.js"
7 changes: 0 additions & 7 deletions tools/toplist.sh

This file was deleted.

0 comments on commit 7ec801a

Please sign in to comment.