Skip to content

Commit

Permalink
Is the APP_ENV the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Dec 3, 2024
1 parent c66c2b8 commit 6c0dece
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/jobs/baseinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ db=${2:-install}
MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}

# If this script is called from unit-tests.sh, we use the test environment
export APP_ENV="${3:-prod}"
#export APP_ENV="${3:-prod}"

# In the test environment, we need to use a different database
[ "$APP_ENV" = "prod" ] && DATABASE_NAME=domjudge || DATABASE_NAME=domjudge_test
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
timeout-minutes: 20
container:
image: domjudge/gitlabci:24.04
options: --privileged --cgroupns=host --init
services:
sqlserver:
image: mariadb
Expand Down

0 comments on commit 6c0dece

Please sign in to comment.