config.php update

remotes/origin/database-api-implementation
Dorian HODIN 2 years ago committed by felixmielcarek
parent 34c5d32294
commit dd65ca432f

@ -83,5 +83,11 @@ steps:
from_secret: db_user
PASSWORD:
from_secret: db_password
networks:
- php_script
depends_on: [ php_script ]
networks :
network_mode : open
external : true
name : php_script

@ -1,8 +1,8 @@
<?php
$username="dafldev"; //Get the username
$host="89.83.53.34"; //Get the address IP of the hosting machine
$password="wrap"; //Get the password for the user selected
$db_name="positiondaflmusic"; //Get the name of the database
$username=$_ENV["USER"]; //Get the username
$host=$_ENV["HOST"]; //Get the address IP of the hosting machine
$password=$_ENV["PASSWORD"]; //Get the password for the user selected
$db_name=$_ENV["DATABASE"]; //Get the name of the database
try { //Try to connect to the database
$connect = mysqli_connect($host, $username, $password, $db_name); //Connecting to database
}catch (mysqli_sql_exception){ //If the connection failed

Loading…
Cancel
Save