Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Do not overwrite NODE_ENV if it is set
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Nov 17, 2016
1 parent bab16dd commit fdac82f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/run-server
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/bash

set -e
bin="$(dirname $BASH_SOURCE)"
bin="$(dirname ${BASH_SOURCE[0]})"
cd $bin/..
export NODE_ENV=dev
if [[ -z "$NODE_ENV" ]] ; then
export NODE_ENV=dev
fi
PATH="node_modules/.bin:$PATH"

if [[ ! -e "node_modules/.bin/nodemon" ]] ; then
Expand Down

0 comments on commit fdac82f

Please sign in to comment.