Skip to content

Commit

Permalink
[TASK] Switch baseurl to environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Apr 9, 2024
1 parent 1f8d900 commit 28aa496
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
TYPO3_BASE_URL="https://surfcamp-team2.ddev.site"
TYPO3_BE_INSTALLTOOLPASSWORD="$argon2id$v=19$m=65536,t=16,p=1$VktrT0J2cXU3SHNtY0c4SA$36zwyPIHD9iUteTlw04ft6NYYmhVA9FtzkR5py/5B0w" # John3:16
TYPO3_DB_CONNECTIONS_DEFAULT_DBNAME="db"
TYPO3_DB_CONNECTIONS_DEFAULT_HOST="db"
Expand Down
2 changes: 1 addition & 1 deletion config/sites/portfolio/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
base: 'https://surfcamp-team2.ddev.site/'
base: '%env(TYPO3_BASE_URL)%'
errorHandling:
-
errorCode: 404
Expand Down
4 changes: 2 additions & 2 deletions config/system/additional.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

$dotenv = Dotenv\Dotenv::createMutable(__DIR__ . '/../../', '.env.dist');
$dotenv = Dotenv\Dotenv::createUnsafeMutable(__DIR__ . '/../../', '.env.dist');
$dotenv->load();

if (file_exists(__DIR__ . '/../../.env')) {
$dotenv = Dotenv\Dotenv::createMutable(__DIR__ . '/../../');
$dotenv = Dotenv\Dotenv::createUnsafeMutable(__DIR__ . '/../../');
$dotenv->load();
}

Expand Down

0 comments on commit 28aa496

Please sign in to comment.