Skip to content

Commit

Permalink
Move default NODE_ENV to tna-build
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jan 13, 2025
1 parent c6bb3cb commit cb14d37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker/tna-python/bin/tna-build
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ then
exit 1
fi

[[ -z $NODE_ENV ]] && NODE_ENV=$ENVIRONMENT

if [ -n "$NPM_BUILD_COMMAND" ] && [ -f "/app/package.json" ]
then
tna-node "$NPM_BUILD_COMMAND"
Expand Down
1 change: 0 additions & 1 deletion docker/tna-python/bin/tna-nvm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

set -e

[[ -z $NODE_ENV ]] && NODE_ENV=$ENVIRONMENT
. "$NVM_DIR/nvm.sh" && true

if [ -f "/app/.nvmrc" ]
Expand Down

0 comments on commit cb14d37

Please sign in to comment.