Use BOX_ENV instead of NODE_ENV

Let NODE_ENV be used by node modules and always be set to production

Fixes #453
This commit is contained in:
Girish Ramakrishnan
2015-07-24 01:42:28 -07:00
parent ec8342c2ce
commit ef9508ccc5
19 changed files with 30 additions and 30 deletions

View File

@@ -17,7 +17,7 @@ if [[ "$1" == "--check" ]]; then
exit 0
fi
if [[ "${NODE_ENV}" == "cloudron" ]]; then
if [[ "${BOX_ENV}" == "cloudron" ]]; then
readonly app_data_dir="${HOME}/data/$1"
btrfs subvolume create "${app_data_dir}"
mkdir -p "${app_data_dir}/data"