Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Allow changing of sql port by config #77

Open
wants to merge 2 commits into
base: v2-develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- name: Replace database config values
run: |
sed -i "s/your_database_host/${{ secrets.SQL_HOST }}/g" inc/config.php
sed -i "s/your_database_port/${{ secrets.SQL_PORT }}/g" inc/config.php
sed -i "s/your_database_username/${{ secrets.SQL_USER }}/g" inc/config.php
sed -i "s/your_database_password/${{ secrets.SQL_PASS }}/g" inc/config.php
sed -i "s/your_database_name/${{ secrets.SQL_DATABASE }}/g" inc/config.php
Expand Down
4 changes: 2 additions & 2 deletions inc/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* Database Config */

$db_host = 'your_database_host'; // DB Hostame
$db_port = 3306; // DB Port (Default: 3306)
$db_port = your_database_port; // DB Port (Default: 3306)
$db_username = 'your_database_username'; // DB Username
$db_password = 'your_database_password'; // DB Password
$db_database = 'your_database_name'; // DB Database
Expand Down Expand Up @@ -66,4 +66,4 @@
$settings_player_flags = TRUE; // Default: TRUE - To disable player flags change to FALSE
$settings_maps_download_url = ''; // To disable remain empty EXAMPLE: http://example.com/maps/

/* End of General Settings */
/* End of General Settings */