Skip to content

Commit

Permalink
Test workflow APP_ENV [SLE-192]
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgfeller committed Dec 19, 2023
1 parent a429f11 commit 49e1d02
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
mysql:
image: mysql:8.0.23
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_PASSWORD: root2
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_DATABASE: test
ports:
Expand Down
2 changes: 1 addition & 1 deletion config/env/env.github2.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
$settings['db']['host'] = '127.0.0.1';
$settings['db']['database'] = 'slim_example_project_test';
$settings['db']['username'] = 'root';
$settings['db']['password'] = 'root';
$settings['db']['password'] = 'root2';
2 changes: 1 addition & 1 deletion config/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

// Set APP_ENV if not already set
$_ENV['APP_ENV'] = $_ENV['APP_ENV'] ?? $_SERVER['APP_ENV'] ?? 'dev';

var_dump($_ENV['APP_ENV']);
// Overwrite previous config with APP_ENV specific values ("env", "test" or "github")
if (isset($_ENV['APP_ENV'])) {
$appEnvConfigFile = __DIR__ . '/env/env.' . $_ENV['APP_ENV'] . '.php';
Expand Down

0 comments on commit 49e1d02

Please sign in to comment.