Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

459 add definitions for important env variables to readme #469

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: fix script logic
DeboraSerra committed Jan 6, 2025
commit 454ca17ef9a7c5111f2ac0c5132359e76b2c9c6a
11 changes: 7 additions & 4 deletions backend/posttest-script.sh
Original file line number Diff line number Diff line change
@@ -13,10 +13,13 @@ fi

# reset NODE_ENV to default
if [[ "$OSTYPE" == "msys" ]]; then
# For Windows CMD: set "NODE_ENV=development"
# For PowerShell: $env:NODE_ENV="development"
set "NODE_ENV=development"
$env:NODE_ENV="development"
if [ -n "$PSModulePath" ]; then
# PowerShell
echo '$env:NODE_ENV="development"' | powershell -Command -
else
# CMD
cmd.exe /C "set NODE_ENV=development"
fi
else
export NODE_ENV=development
fi
11 changes: 7 additions & 4 deletions backend/pretest-script.sh
Original file line number Diff line number Diff line change
@@ -2,10 +2,13 @@

# set node env to test, if windows use set instead of export
if [[ "$OSTYPE" == "msys" ]]; then
# For Windows CMD: set "NODE_ENV=test"
# For PowerShell: $env:NODE_ENV="test"
set "NODE_ENV=test"
$env:NODE_ENV="test"
if [ -n "$PSModulePath" ]; then
# PowerShell
echo '$env:NODE_ENV="test"' | powershell -Command -
else
# CMD
cmd.exe /C "set NODE_ENV=test"
fi
else
export NODE_ENV=test
fi