Add .gitignore, untrack config.php, add config.example.php
This commit is contained in:
parent
1ae870a011
commit
967e1c6e0d
3 changed files with 29 additions and 15 deletions
14
.gitignore
vendored
Normal file
14
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
# DB credentials — never commit the real version
|
||||||
|
config.php
|
||||||
|
|
||||||
|
# Editor & OS noise
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
|
||||||
|
# Uploads (user avatars etc.)
|
||||||
|
uploads/
|
||||||
|
|
||||||
|
# PHP cache
|
||||||
|
*.cache
|
||||||
15
config.example.php
Normal file
15
config.example.php
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copy this file to config.php and fill in your database credentials.
|
||||||
|
* In Plesk: Databases → your DB → Users.
|
||||||
|
*/
|
||||||
|
return [
|
||||||
|
'host' => 'localhost',
|
||||||
|
'dbname' => 'DB_NAME',
|
||||||
|
'user' => 'DB_USER',
|
||||||
|
'pass' => 'DB_PASSWORD',
|
||||||
|
'charset' => 'utf8mb4',
|
||||||
|
];
|
||||||
15
config.php
15
config.php
|
|
@ -1,15 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* DB-Zugangsdaten hier eintragen.
|
|
||||||
* Findest du in Plesk unter: Datenbanken -> deine DB -> Benutzer.
|
|
||||||
*/
|
|
||||||
return [
|
|
||||||
'host' => 'localhost',
|
|
||||||
'dbname' => 'guess_appform',
|
|
||||||
'user' => 'guess_appform',
|
|
||||||
'pass' => 'Z_O9Vcpidy!ot1f7',
|
|
||||||
'charset' => 'utf8mb4',
|
|
||||||
];
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue