fixed .env path in init.php
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1 +1,3 @@
|
|||||||
.env
|
.env
|
||||||
|
.vscode/
|
||||||
|
*.log
|
||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user