- Add env ldc web status

This commit is contained in:
Vincent BRIDIER 2020-05-18 16:23:57 +02:00
parent 79eee76784
commit a85dad15ec
2 changed files with 4 additions and 2 deletions

View file

@ -45,7 +45,7 @@ class LDCWebStatusChecker extends Command
public function handle()
{
$data = [];
$data['uuid'] = env('PROJECT_UUID');
$data['uuid'] = config('app.project_uuid');
// Sitemap.xml ?
if (file_exists(public_path() . '/sitemap.xml')) {
@ -74,7 +74,7 @@ class LDCWebStatusChecker extends Command
$data['code']['version'] = app()->version();
// Send by cURL
$url = 'http://ldc-web.test/api/status-checker';
$url = 'https://ldc-web.ldc.fr/api/status-checker';
$ch = curl_init($url);
$payload = ['token' => 'CE8S52Qq7stf5k8frF4T', 'datas' => json_encode($data)];
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);

View file

@ -228,4 +228,6 @@ return [
],
'project_uuid' => env('PROJECT_UUID'),
];