fixed .env path in init.php

This commit is contained in:
2026-04-16 16:14:43 +02:00
parent d2f2b577be
commit dec36d4053
3 changed files with 5 additions and 3 deletions

4
.gitignore vendored
View File

@@ -1 +1,3 @@
.env .env
.vscode/
*.log

View File

@@ -1,7 +1,7 @@
<?php <?php
// Reads Environment Configfile // Reads Environment Configfile
$envFile = __DIR__ . '/.env'; $envFile = __DIR__ . '/../.env';
if (file_exists($envFile)) { if (file_exists($envFile)) {
$lines = file($envFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); $lines = file($envFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
foreach ($lines as $line) { foreach ($lines as $line) {

View File

@@ -10,7 +10,7 @@ Citizen Participation Portal for Lohne (Oldenburg).
- `scripts/` — Maintenance Scripts (backup, deployment) - `scripts/` — Maintenance Scripts (backup, deployment)
- `legacy/` — Reference Code from Prototype - `legacy/` — Reference Code from Prototype
## Local setup ## Local Setup
1. Copy `.env.example` to `.env` and fill in Database Credentials. 1. Copy `.env.example` to `.env` and fill in Database Credentials.
2. Run the SQL Migration in pgAdmin and execute in the target database. 2. Run the SQL Migration in pgAdmin and execute in the target database.