Environmant fix
This commit is contained in:
@@ -7,7 +7,10 @@ class Home extends BaseController
|
||||
public function index(): string
|
||||
{
|
||||
$data["config_name"] = $_ENV['CONFIG_NAME'];
|
||||
/// return view('welcome_message',$data);
|
||||
return view('live_welcome_message',$data);
|
||||
if ($_ENV['CI_ENV'] === 'production') {
|
||||
return view('live_welcome_message', $data);
|
||||
} else {
|
||||
return view('welcome_message', $data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ class Media extends BaseController
|
||||
public function index(): void
|
||||
{
|
||||
|
||||
|
||||
$target_file = "/var/www/html/SITEFILES/TEST/test.jpg";
|
||||
$filename = $target_file;
|
||||
$file_extension = strtolower(substr(strrchr($filename, "."), 1));
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
<header>
|
||||
<div class="heroe">
|
||||
<h1>MERMS-Media - <?= $data ?? '' ?> </h1>
|
||||
<h1>MERMS-Media - <?= $config_name ?? '' ?> </h1>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
<header>
|
||||
<div class="heroe">
|
||||
<h1>MERMS-Media - <?= $data ?? '' ?> </h1>
|
||||
<h1>MERMS-Media - <?= $config_name ?? '' ?> </h1>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
|
||||
@@ -10,7 +10,7 @@ services:
|
||||
- APACHE_RUN_USER=#${UID}
|
||||
- APACHE_RUN_GROUP=#${UID}
|
||||
- CI_ENVIRONMENT=production
|
||||
- CI_ENV=${CI_ENV:-production}
|
||||
- CI_ENV=production
|
||||
- CI_CONFIG
|
||||
- MAIN_DATABASE_IP=10.13.3.60
|
||||
- MAIN_DATABASE_USERNAME=merms_panel
|
||||
@@ -18,6 +18,7 @@ services:
|
||||
- MAIN_DATABASE=merms_panel
|
||||
- MAIN_DATABASE_PORT=5432
|
||||
- UPLOAD_FOLDER=/var/www/html/uploads/LIVE
|
||||
- CONFIG_NAME='LV'
|
||||
restart: unless-stopped
|
||||
image: registry.chiefsoft.net/mermsprovision:latest
|
||||
volumes:
|
||||
|
||||
+2
-1
@@ -10,8 +10,9 @@ services:
|
||||
- APACHE_RUN_USER=#${UID}
|
||||
- APACHE_RUN_GROUP=#${UID}
|
||||
- CI_ENVIRONMENT=development
|
||||
- CI_ENV=${CI_ENV:-development}
|
||||
- CI_ENV=development
|
||||
- CI_CONFIG
|
||||
- CONFIG_NAME='DV'
|
||||
restart: unless-stopped
|
||||
image: registry.chiefsoft.net/merms-media:latest
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user